Skip to content

Commit

Permalink
Drop present_at_unpublish column from attachment data table
Browse files Browse the repository at this point in the history
Now that we are no longer marking attachments as present at unpublishing as part of unpublishing a document, this database column is no longer needed.
  • Loading branch information
ryanb-gds committed Oct 20, 2023
1 parent 33e80d7 commit f89eebd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class DropPresentAtUnpublishingColumnFromAttachments < ActiveRecord::Migration[7.0]
def change
remove_column :attachment_data, :present_at_unpublish, :boolean
end
end
3 changes: 1 addition & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2023_10_16_170633) do
ActiveRecord::Schema[7.0].define(version: 2023_10_20_151031) do
create_table "assets", charset: "utf8mb3", force: :cascade do |t|
t.string "asset_manager_id", null: false
t.string "variant", null: false
Expand All @@ -30,7 +30,6 @@
t.datetime "created_at", precision: nil
t.datetime "updated_at", precision: nil
t.integer "replaced_by_id"
t.boolean "present_at_unpublish"
t.index ["replaced_by_id"], name: "index_attachment_data_on_replaced_by_id"
end

Expand Down

0 comments on commit f89eebd

Please sign in to comment.