class DescriptionObject < ActiveFedora::Base

  include Hydra::ModelMixins::RightsMetadata

  has_metadata "rightsMetadata", type: Hydra::Datastream::RightsMetadata
  has_metadata 'descMetadata', type: Datastream::DescriptionObjectMetadata

  belongs_to :institution, property: :is_part_of

  delegate :title, to: 'descMetadata', unique: true
  delegate :dpn_status, to: 'descMetadata', unique: true
  # delegate :institution_name, to: 'descMetadata', unique: true

  validates :title, :dpn_status, presence: true

end
class DescriptionObject < ActiveFedora::Base

  include Hydra::ModelMixins::RightsMetadata

  has_metadata "rightsMetadata", type: Hydra::Datastream::RightsMetadata
  has_metadata 'descMetadata', type: Datastream::DescriptionObjectMetadata

  belongs_to :institution, property: :is_part_of

  delegate :title, to: 'descMetadata', unique: true
  delegate :dpn_status, to: 'descMetadata', unique: true

  validates :title, :dpn_status, presence: true

end
Remove commented out line in DescriptionObject model
Remove commented out line in DescriptionObject model
