8703: add "components" hash to job.
[arvados.git] / services / api / db / migrate / 20160324144017_add_components_to_job.rb
diff --git a/services/api/db/migrate/20160324144017_add_components_to_job.rb b/services/api/db/migrate/20160324144017_add_components_to_job.rb
new file mode 100644 (file)
index 0000000..9595d7f
--- /dev/null
@@ -0,0 +1,11 @@
+class AddComponentsToJob < ActiveRecord::Migration
+  def up
+    add_column :jobs, :components, :text
+  end
+
+  def down
+    if column_exists?(:jobs, :components)
+      remove_column :jobs, :components
+    end
+  end
+end