Sha256: ad8211758446cc3a04a5d62f4a0330bf7f0f9094be03bc2f39ed7ef39987f677

Contents?: true

Size: 669 Bytes

Versions: 6

Compression:

Stored size: 669 Bytes

Contents

class ManifestationCustomValue < ApplicationRecord
  belongs_to :manifestation_custom_property
  belongs_to :manifestation, optional: true
  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

6 entries across 6 versions & 1 rubygems

Version Path
enju_biblio-0.3.18 app/models/manifestation_custom_value.rb
enju_biblio-0.3.17 app/models/manifestation_custom_value.rb
enju_biblio-0.3.16 app/models/manifestation_custom_value.rb
enju_biblio-0.3.15 app/models/manifestation_custom_value.rb
enju_biblio-0.3.14 app/models/manifestation_custom_value.rb
enju_biblio-0.3.13 app/models/manifestation_custom_value.rb