From d96d561180c1271f63c32900e3669808997a7610 Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Fri, 8 Feb 2019 16:01:46 +0100 Subject: [PATCH] Fix defect db migration Follow-up to fc999c04b34edb93cb3538718bcd22d295509a4a --- .../20190205104116_drop_unused_auth_tables.rb | 13 +------------ ...190208144706_drop_unused_auth_tables_again.rb | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 db/post_migrate/20190208144706_drop_unused_auth_tables_again.rb diff --git a/db/post_migrate/20190205104116_drop_unused_auth_tables.rb b/db/post_migrate/20190205104116_drop_unused_auth_tables.rb index 45b5864d2ca..ebd7feacbc2 100644 --- a/db/post_migrate/20190205104116_drop_unused_auth_tables.rb +++ b/db/post_migrate/20190205104116_drop_unused_auth_tables.rb @@ -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 diff --git a/db/post_migrate/20190208144706_drop_unused_auth_tables_again.rb b/db/post_migrate/20190208144706_drop_unused_auth_tables_again.rb new file mode 100644 index 00000000000..bd67293e9ad --- /dev/null +++ b/db/post_migrate/20190208144706_drop_unused_auth_tables_again.rb @@ -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