mirror of
https://github.com/discourse/discourse.git
synced 2025-03-04 18:29:20 +00:00
* Remove old bookmark column ignores to follow up b22450c7a8d378b32291743ca602cbc477dea106 * Change some group site setting checks to use the _map helper * Remove old secure_media helper stub for chat * Change attr_accessor to attr_reader for preloaded_custom_fields to follow up 70af45055ae24dc7eb1a20678a52ed3ec69421c3
23 lines
409 B
Ruby
23 lines
409 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'migration/column_dropper'
|
|
|
|
class DropOldBookmarkColumnsV2 < ActiveRecord::Migration[7.0]
|
|
DROPPED_COLUMNS ||= {
|
|
bookmarks: %i{
|
|
post_id
|
|
for_topic
|
|
}
|
|
}
|
|
|
|
def up
|
|
DROPPED_COLUMNS.each do |table, columns|
|
|
Migration::ColumnDropper.execute_drop(table, columns)
|
|
end
|
|
end
|
|
|
|
def down
|
|
raise ActiveRecord::IrreversibleMigration
|
|
end
|
|
end
|