We haven't used these columns since commit 7212657c0, and every Consul
Democracy installation has been using Active Storage since version
1.5.0.
18 lines
595 B
Ruby
18 lines
595 B
Ruby
class RemovePaperclipColumns < ActiveRecord::Migration[6.1]
|
|
def change
|
|
change_table :images do |t|
|
|
t.remove :attachment_file_name, type: :string
|
|
t.remove :attachment_content_type, type: :string
|
|
t.remove :attachment_file_size, type: :bigint
|
|
t.remove :attachment_updated_at, type: :datetime
|
|
end
|
|
|
|
change_table :documents do |t|
|
|
t.remove :attachment_file_name, type: :string
|
|
t.remove :attachment_content_type, type: :string
|
|
t.remove :attachment_file_size, type: :bigint
|
|
t.remove :attachment_updated_at, type: :datetime
|
|
end
|
|
end
|
|
end
|