2023-07-12 09:47:08 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-06-05 02:43:02 +02:00
|
|
|
class AddAttachmentDataToImports < ActiveRecord::Migration[4.2]
|
2024-06-21 16:43:12 +02:00
|
|
|
def up
|
2017-03-30 19:42:33 +02:00
|
|
|
change_table :imports do |t|
|
2024-05-20 16:59:27 +02:00
|
|
|
# The following corresponds to `t.attachment :data` in an older version of Paperclip
|
|
|
|
t.string :data_file_name
|
|
|
|
t.string :data_content_type
|
|
|
|
t.integer :data_file_size
|
|
|
|
t.datetime :data_updated_at
|
2017-03-30 19:42:33 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2024-06-21 16:43:12 +02:00
|
|
|
def down
|
2017-03-30 19:42:33 +02:00
|
|
|
remove_attachment :imports, :data
|
|
|
|
end
|
|
|
|
end
|