8018: Add migration script for "container_count" field.
authorPeter Amstutz <peter.amstutz@curoverse.com>
Wed, 5 Oct 2016 17:16:54 +0000 (13:16 -0400)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Wed, 5 Oct 2016 17:16:54 +0000 (13:16 -0400)
services/api/db/migrate/20160926194129_add_container_count.rb [new file with mode: 0644]

diff --git a/services/api/db/migrate/20160926194129_add_container_count.rb b/services/api/db/migrate/20160926194129_add_container_count.rb
new file mode 100644 (file)
index 0000000..41624f1
--- /dev/null
@@ -0,0 +1,9 @@
+class AddContainerCount < ActiveRecord::Migration
+  def up
+    add_column :container_requests, :container_count, :int, :default => 0
+  end
+
+  def down
+    remove_column :container_requests, :container_count
+  end
+end