Files
grecia/db/migrate/20231012141318_remove_paperclip_columns.rb
Javi Martín 1826e3b691 Remove legacy Paperclip columns
We haven't used these columns since commit 7212657c0, and every Consul
Democracy installation has been using Active Storage since version
1.5.0.
2023-10-23 15:49:01 +02:00

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