mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
parent
7aecd3c2f5
commit
d96d561180
@ -2,17 +2,6 @@ require 'migration/table_dropper'
|
|||||||
|
|
||||||
class DropUnusedAuthTables < ActiveRecord::Migration[5.2]
|
class DropUnusedAuthTables < ActiveRecord::Migration[5.2]
|
||||||
def change
|
def change
|
||||||
def up
|
# this migration was defect
|
||||||
%i{
|
|
||||||
facebook_user_infos
|
|
||||||
twitter_user_infos
|
|
||||||
}.each do |table|
|
|
||||||
Migration::TableDropper.execute_drop(table)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def down
|
|
||||||
raise ActiveRecord::IrreversibleMigration
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
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
Block a user