Sha256: 84fce1a5683f340481ffc3292b7942b2fceca36fc6a09a0d618cc5049e88e45a

Contents?: true

Size: 670 Bytes

Versions: 5

Compression:

Stored size: 670 Bytes

Contents

class ManifestationCustomValue < ApplicationRecord
  belongs_to :manifestation_custom_property
  belongs_to :manifestation, required: false
  validates :manifestation_custom_property, uniqueness: {scope: :manifestation_id}
end

# == Schema Information
#
# Table name: manifestation_custom_values
#
#  id                               :integer          not null, primary key
#  manifestation_custom_property_id :integer          not null
#  manifestation_id                 :integer          not null
#  value                            :text
#  created_at                       :datetime         not null
#  updated_at                       :datetime         not null
#

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
enju_biblio-0.3.12 app/models/manifestation_custom_value.rb
enju_biblio-0.3.11 app/models/manifestation_custom_value.rb
enju_biblio-0.3.10 app/models/manifestation_custom_value.rb
enju_biblio-0.3.10.rc.3 app/models/manifestation_custom_value.rb
enju_biblio-0.3.10.rc.2 app/models/manifestation_custom_value.rb