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

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