2023-07-12 16:47:08 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-06-05 09:43:02 +09:00
|
|
|
class AddAttachmentDataToImports < ActiveRecord::Migration[4.2]
|
2017-03-31 02:42:33 +09:00
|
|
|
def self.up
|
|
|
|
change_table :imports do |t|
|
2024-05-20 23:59:27 +09: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-31 02:42:33 +09:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
remove_attachment :imports, :data
|
|
|
|
end
|
|
|
|
end
|