mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +08:00
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:
@ -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
|
Reference in New Issue
Block a user