DEV: TODO followups (#18936)

* Remove old bookmark column ignores to follow up b22450c7a8
* 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 70af45055a
This commit is contained in:
Martin Brennan
2022-11-09 07:48:05 +10:00
committed by GitHub
parent 74a9859a12
commit f8f55cef67
6 changed files with 29 additions and 20 deletions

View File

@@ -0,0 +1,22 @@
# 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