From fc999c04b34edb93cb3538718bcd22d295509a4a Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 5 Feb 2019 15:12:39 +0000 Subject: [PATCH] Drop facebook_user_infos and twitter_user_infos (#6970) Data was migrated to user_associated_accounts in 208005f and 160d29b --- .../20190205104116_drop_unused_auth_tables.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 db/post_migrate/20190205104116_drop_unused_auth_tables.rb diff --git a/db/post_migrate/20190205104116_drop_unused_auth_tables.rb b/db/post_migrate/20190205104116_drop_unused_auth_tables.rb new file mode 100644 index 00000000000..45b5864d2ca --- /dev/null +++ b/db/post_migrate/20190205104116_drop_unused_auth_tables.rb @@ -0,0 +1,18 @@ +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 + end +end