2776: Started adding KeepServices model.
authorPeter Amstutz <peter.amstutz@curoverse.com>
Mon, 19 May 2014 21:11:09 +0000 (17:11 -0400)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Mon, 19 May 2014 21:11:09 +0000 (17:11 -0400)
services/api/app/models/keep_service.rb [new file with mode: 0644]
services/api/db/migrate/20140519205916_create_keep_services.rb [new file with mode: 0644]

diff --git a/services/api/app/models/keep_service.rb b/services/api/app/models/keep_service.rb
new file mode 100644 (file)
index 0000000..d7af945
--- /dev/null
@@ -0,0 +1,7 @@
+class KeepService < ArvadosModel
+  include AssignUuid
+  include KindAndEtag
+  include CommonApiTemplate
+
+
+end
diff --git a/services/api/db/migrate/20140519205916_create_keep_services.rb b/services/api/db/migrate/20140519205916_create_keep_services.rb
new file mode 100644 (file)
index 0000000..7138737
--- /dev/null
@@ -0,0 +1,18 @@
+class CreateKeepServices < ActiveRecord::Migration
+  def change
+    create_table :keep_services do |t|
+      t.string :uuid, :null => false
+      t.string :owner_uuid, :null => false
+      t.string :modified_by_client_uuid
+      t.string :modified_by_user_uuid
+      t.datetime :modified_at
+      t.string   :service_host
+      t.integer  :service_port
+      t.boolean  :service_ssl_flag
+      t.string   :service_type
+
+      t.timestamps
+    end
+    add_index :keep_services, :uuid, :unique => true
+  end
+end