[ARVADOS] updated: 731547ae2d548cd2869779c200813262c05581b2

git at public.curoverse.com git at public.curoverse.com
Tue May 12 15:55:43 EDT 2015


Summary of changes:
 services/api/app/models/keep_service.rb                          | 1 +
 .../api/db/migrate/20150512193020_read_only_on_keep_services.rb  | 9 +++++++++
 services/api/db/structure.sql                                    | 7 +++++--
 3 files changed, 15 insertions(+), 2 deletions(-)
 create mode 100644 services/api/db/migrate/20150512193020_read_only_on_keep_services.rb

       via  731547ae2d548cd2869779c200813262c05581b2 (commit)
      from  ea7da293b0a10baef18cfc6e107c87a9c3b09546 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 731547ae2d548cd2869779c200813262c05581b2
Author: Radhika Chippada <radhika at curoverse.com>
Date:   Tue May 12 15:55:10 2015 -0400

    4717: add read_only column for keep_services data model.

diff --git a/services/api/app/models/keep_service.rb b/services/api/app/models/keep_service.rb
index 3baf098..6854ed2 100644
--- a/services/api/app/models/keep_service.rb
+++ b/services/api/app/models/keep_service.rb
@@ -8,6 +8,7 @@ class KeepService < ArvadosModel
     t.add  :service_port
     t.add  :service_ssl_flag
     t.add  :service_type
+    t.add  :read_only
   end
   api_accessible :superuser, :extend => :user do |t|
   end
diff --git a/services/api/db/migrate/20150512193020_read_only_on_keep_services.rb b/services/api/db/migrate/20150512193020_read_only_on_keep_services.rb
new file mode 100644
index 0000000..1778b07
--- /dev/null
+++ b/services/api/db/migrate/20150512193020_read_only_on_keep_services.rb
@@ -0,0 +1,9 @@
+class ReadOnlyOnKeepServices < ActiveRecord::Migration
+  def up
+    add_column :keep_services, :read_only, :boolean, null: false, default: false
+  end
+
+  def down
+    remove_column :keep_services, :read_only
+  end
+end
diff --git a/services/api/db/structure.sql b/services/api/db/structure.sql
index a86de69..dc44e41 100644
--- a/services/api/db/structure.sql
+++ b/services/api/db/structure.sql
@@ -518,7 +518,8 @@ CREATE TABLE keep_services (
     service_ssl_flag boolean,
     service_type character varying(255),
     created_at timestamp without time zone NOT NULL,
-    updated_at timestamp without time zone NOT NULL
+    updated_at timestamp without time zone NOT NULL,
+    read_only boolean DEFAULT false NOT NULL
 );
 
 
@@ -2376,4 +2377,6 @@ INSERT INTO schema_migrations (version) VALUES ('20150317132720');
 
 INSERT INTO schema_migrations (version) VALUES ('20150324152204');
 
-INSERT INTO schema_migrations (version) VALUES ('20150423145759');
\ No newline at end of file
+INSERT INTO schema_migrations (version) VALUES ('20150423145759');
+
+INSERT INTO schema_migrations (version) VALUES ('20150512193020');
\ No newline at end of file

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list