diff --git a/db/post_migrate/20191129144706_drop_unused_google_instagram_auth_tables.rb b/db/post_migrate/20191129144706_drop_unused_google_instagram_auth_tables.rb new file mode 100644 index 00000000000..f1b3df2e60a --- /dev/null +++ b/db/post_migrate/20191129144706_drop_unused_google_instagram_auth_tables.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +require 'migration/table_dropper' + +class DropUnusedGoogleInstagramAuthTables < ActiveRecord::Migration[6.0] + DROPPED_TABLES ||= %i{ + google_user_infos + instagram_user_infos + } + + def up + DROPPED_TABLES.each do |table| + Migration::TableDropper.execute_drop(table) + end + end + + def down + raise ActiveRecord::IrreversibleMigration + end +end