2023-07-12 07:47:08 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-06-05 00:43:02 +00:00
|
|
|
class AddAttachmentHeaderToAccounts < ActiveRecord::Migration[4.2]
|
2024-06-21 14:43:12 +00:00
|
|
|
def up
|
2016-03-12 19:47:22 +00:00
|
|
|
change_table :accounts do |t|
|
2024-05-20 14:59:27 +00:00
|
|
|
# The following corresponds to `t.attachment :header` in an older version of Paperclip
|
|
|
|
t.string :header_file_name
|
|
|
|
t.string :header_content_type
|
|
|
|
t.integer :header_file_size
|
|
|
|
t.datetime :header_updated_at
|
2016-03-12 19:47:22 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2024-06-21 14:43:12 +00:00
|
|
|
def down
|
2016-03-12 19:47:22 +00:00
|
|
|
remove_attachment :accounts, :header
|
|
|
|
end
|
|
|
|
end
|