From e3fb0638beabbdf025fc8aee36511fcbe4d5bca5 Mon Sep 17 00:00:00 2001 From: Sean Cleveland Date: Fri, 9 Mar 2012 15:38:07 -0700 Subject: [PATCH] added a controlled vocabulary to a collection for managing schema names --- lib/yogo/collection/data.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/yogo/collection/data.rb b/lib/yogo/collection/data.rb index 3be2035..15202d3 100644 --- a/lib/yogo/collection/data.rb +++ b/lib/yogo/collection/data.rb @@ -29,6 +29,7 @@ class Data #has n, :collection_associations, :model => "Yogo::CollectionAssociation", :child_key=> :source_collection_id #has n, :collections, self, :through => :collection_associations, :via => :target_collection has n, :schema, :model => 'Yogo::Collection::Property', :child_key => [:data_collection_id] + belongs_to :controlled_vocabulary, :model => 'Yogo::Collection::Property', :required => false include Collection::Base include Data::ModelConfiguration