Skip to content

Commit 635c4a2

Browse files
Remove news_article_type_id column
1 parent 3b78165 commit 635c4a2

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class RemoveNewsArticleTypeIdFromEditions < ActiveRecord::Migration[8.0]
2+
def up
3+
safety_assured { remove_column :editions, :news_article_type_id, :integer }
4+
end
5+
6+
def down
7+
add_column :editions, :news_article_type_id, :integer
8+
end
9+
end

db/schema.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[8.0].define(version: 2026_01_07_120715) do
13+
ActiveRecord::Schema[8.0].define(version: 2026_01_07_195134) do
1414
create_table "assets", charset: "utf8mb4", collation: "utf8mb4_unicode_ci", force: :cascade do |t|
1515
t.string "asset_manager_id", null: false
1616
t.string "variant", null: false
@@ -379,7 +379,6 @@
379379
t.integer "published_minor_version"
380380
t.integer "operational_field_id"
381381
t.text "roll_call_introduction", size: :medium
382-
t.integer "news_article_type_id"
383382
t.string "person_override"
384383
t.boolean "external", default: false
385384
t.string "external_url"

0 commit comments

Comments
 (0)