DEV: Drop unused google and instagram auth_info tables

Information was migrated to user_associated_accounts in fc7938f7e081318ad52462bd2aa1c95e61fb5d03 and 703c724cf3adff0feb89f99be30f4fb4ed540e22
This commit is contained in:
David Taylor
2019-11-29 16:28:39 +00:00
parent dd8fe1a9e7
commit 88dce41be1

View File

@ -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