about summary refs log tree commit diff
path: root/db/migrate/20170330164118_add_attachment_data_to_imports.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20170330164118_add_attachment_data_to_imports.rb')
-rw-r--r--db/migrate/20170330164118_add_attachment_data_to_imports.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20170330164118_add_attachment_data_to_imports.rb b/db/migrate/20170330164118_add_attachment_data_to_imports.rb
new file mode 100644
index 000000000..4850b0663
--- /dev/null
+++ b/db/migrate/20170330164118_add_attachment_data_to_imports.rb
@@ -0,0 +1,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