DEV: Drop unused google and instagram auth_info tables

Information was migrated to user_associated_accounts in fc7938f7e0 and 703c724cf3
This commit is contained in:
David Taylor 2019-11-29 16:28:39 +00:00
parent dd8fe1a9e7
commit 88dce41be1
1 changed files with 20 additions and 0 deletions

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