moved api server code into new directory structure
[arvados.git] / services / api / db / migrate / 20130116215213_create_projects.rb
diff --git a/services/api/db/migrate/20130116215213_create_projects.rb b/services/api/db/migrate/20130116215213_create_projects.rb
new file mode 100644 (file)
index 0000000..5ae59e1
--- /dev/null
@@ -0,0 +1,21 @@
+class CreateProjects < ActiveRecord::Migration
+  def up
+    create_table :projects do |t|
+      t.string :uuid
+      t.string :created_by_client
+      t.string :created_by_user
+      t.datetime :created_at
+      t.string :modified_by_client
+      t.string :modified_by_user
+      t.datetime :modified_at
+      t.string :name
+      t.text :description
+
+      t.timestamps
+    end
+    add_index :projects, :uuid, :unique => true
+  end
+  def down
+    drop_table :projects
+  end
+end