parent
7aecd3c2f5
commit
d96d561180
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue