2022-01-03 20:19:27 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require "migration/column_dropper"
|
|
|
|
|
|
|
|
class DropOldBookmarkColumns < ActiveRecord::Migration[6.1]
|
2024-10-15 22:09:07 -04:00
|
|
|
DROPPED_COLUMNS = { bookmarks: %i[topic_id reminder_type] }
|
2022-01-03 20:19:27 -05:00
|
|
|
|
|
|
|
def up
|
|
|
|
DROPPED_COLUMNS.each { |table, columns| Migration::ColumnDropper.execute_drop(table, columns) }
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
raise ActiveRecord::IrreversibleMigration
|
|
|
|
end
|
|
|
|
end
|