A platform for community discussion. Free, open, simple.
Fix defect db migration
Gerhard Schlagerd96d561180c1
diff --git a/db/post_migrate/20190205104116_drop_unused_auth_tables.rb b/db/post_migrate/20190205104116_drop_unused_auth_tables.rbindex 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 defectendenddiff --git a/db/post_migrate/20190208144706_drop_unused_auth_tables_again.rb b/db/post_migrate/20190208144706_drop_unused_auth_tables_again.rbnew file mode 100644index 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