Skip to content

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

Drop facebook_user_infos and twitter_user_infos (#6970)

David Taylorfc999c04b34e
diff --git a/db/post_migrate/20190205104116_drop_unused_auth_tables.rb b/db/post_migrate/20190205104116_drop_unused_auth_tables.rb
new file mode 100644
index 00000000000..45b5864d2ca
--- /dev/null
+++ b/db/post_migrate/20190205104116_drop_unused_auth_tables.rb
@@ -0,0 +1,18 @@
+require 'migration/table_dropper'
+
+class DropUnusedAuthTables < ActiveRecord::Migration[5.2]
+ def change
+ def up
+ %i{
+ facebook_user_infos
+ twitter_user_infos
+ }.each do |table|
+ Migration::TableDropper.execute_drop(table)
+ end
+ end
+
+ def down
+ raise ActiveRecord::IrreversibleMigration
+ end
+ end
+end