Skip to content

A platform for community discussion. Free, open, simple.

DEV: Drop unused google and instagram auth_info tables

David Taylor88dce41be1ed
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