DEV: Drop uploads verified column (#13677)

I marked this ignored almost a year ago in
80268357e7
This commit is contained in:
Martin Brennan 2021-07-09 16:16:13 +10:00 committed by GitHub
parent 43d4859d30
commit ef90575b91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,17 @@
# frozen_string_literal: true
class DropUploadsVerified < ActiveRecord::Migration[6.1]
DROPPED_COLUMNS ||= {
uploads: %i{verified}
}
def up
DROPPED_COLUMNS.each do |table, columns|
Migration::ColumnDropper.execute_drop(table, columns)
end
end
def down
add_column :uploads, :verified, :string
end
end