discourse/db/post_migrate/20190208144706_drop_unused_auth_tables_again.rb
Gerhard Schlager d96d561180 Fix defect db migration
Follow-up to fc999c04b34edb93cb3538718bcd22d295509a4a
2019-02-08 16:02:33 +01:00

17 lines
326 B
Ruby

require 'migration/table_dropper'
class DropUnusedAuthTablesAgain < ActiveRecord::Migration[5.2]
def up
%i{
facebook_user_infos
twitter_user_infos
}.each do |table|
Migration::TableDropper.execute_drop(table)
end
end
def down
raise ActiveRecord::IrreversibleMigration
end
end