spec/internal/app/models/content_model.rb in fcrepo_admin-0.1.1 vs spec/internal/app/models/content_model.rb in fcrepo_admin-0.2.0
- old
+ new
@@ -1,8 +1,9 @@
class ContentModel < ActiveFedora::Base
has_metadata :name => "descMetadata", :type => ActiveFedora::QualifiedDublinCoreDatastream
has_metadata :name => "rightsMetadata", :type => Hydra::Datastream::RightsMetadata
+ has_file_datastream :name => "content", :type => ActiveFedora::Datastream
delegate :title, :to => "descMetadata", :unique => true
belongs_to :admin_policy, :property => :is_governed_by