A platform for community discussion. Free, open, simple.
DEV: Drop github_user_infos table (#11181)
David Taylore8452a55a61c
diff --git a/db/post_migrate/20201110110952_drop_github_user_infos.rb b/db/post_migrate/20201110110952_drop_github_user_infos.rbnew file mode 100644index 00000000000..7fbbb78b95e--- /dev/null+++ b/db/post_migrate/20201110110952_drop_github_user_infos.rb@@ -0,0 +1,17 @@+# frozen_string_literal: true++require 'migration/table_dropper'++class DropGithubUserInfos < ActiveRecord::Migration[6.0]+ DROPPED_TABLES ||= %i{ github_user_infos }++ def up+ DROPPED_TABLES.each do |table|+ Migration::TableDropper.execute_drop(table)+ end+ end++ def down+ raise ActiveRecord::IrreversibleMigration+ end+end