DEV: Drop unused column email_tokens.token (#15203)

This commit is contained in:
Dan Ungureanu
2021-12-13 07:29:47 +02:00
committed by GitHub
parent f8b3fe65d7
commit 3d4aee1487
3 changed files with 26 additions and 8 deletions

View File

@@ -0,0 +1,17 @@
# frozen_string_literal: true
class DropTokenFromEmailTokens < ActiveRecord::Migration[6.1]
DROPPED_COLUMNS ||= {
email_tokens: %i{token}
}
def up
DROPPED_COLUMNS.each do |table, columns|
Migration::ColumnDropper.execute_drop(table, columns)
end
end
def down
raise ActiveRecord::IrreversibleMigration
end
end