mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 13:41:31 +08:00
DEV: Drop uploads verified column (#13677)
I marked this ignored almost a year ago in
80268357e7
This commit is contained in:
parent
43d4859d30
commit
ef90575b91
17
db/post_migrate/20210709053030_drop_uploads_verified.rb
Normal file
17
db/post_migrate/20210709053030_drop_uploads_verified.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user