about summary refs log tree commit diff
path: root/db/migrate/20170330164118_add_attachment_data_to_imports.rb
blob: 2deda18861227661e190d8a6b10c980920555515 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
class AddAttachmentDataToImports < ActiveRecord::Migration[4.2]
  def self.up
    change_table :imports do |t|
      t.attachment :data
    end
  end

  def self.down
    remove_attachment :imports, :data
  end
end