Fix defect db migration

Follow-up to fc999c04b3
This commit is contained in:
Gerhard Schlager 2019-02-08 16:01:46 +01:00
parent 7aecd3c2f5
commit d96d561180
2 changed files with 17 additions and 12 deletions

View File

@ -2,17 +2,6 @@ require 'migration/table_dropper'
class DropUnusedAuthTables < ActiveRecord::Migration[5.2]
def change
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
# this migration was defect
end
end

View File

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