Sha256: c425a846548808ad1ec5cc35101df35e47ebb568a3d780c0a462410a48a1c1f8

Contents?: true

Size: 249 Bytes

Versions: 12

Compression:

Stored size: 249 Bytes

Contents

module Alchemy
  class PictureDescription < ActiveRecord::Base
    belongs_to :picture, class_name: "Alchemy::Picture"
    belongs_to :language, class_name: "Alchemy::Language"

    validates_uniqueness_of :picture_id, scope: :language_id
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
alchemy_cms-7.3.4 app/models/alchemy/picture_description.rb
alchemy_cms-7.3.3 app/models/alchemy/picture_description.rb
alchemy_cms-7.3.2 app/models/alchemy/picture_description.rb
alchemy_cms-7.2.7 app/models/alchemy/picture_description.rb
alchemy_cms-7.3.1 app/models/alchemy/picture_description.rb
alchemy_cms-7.3.0 app/models/alchemy/picture_description.rb
alchemy_cms-7.2.6 app/models/alchemy/picture_description.rb
alchemy_cms-7.2.5 app/models/alchemy/picture_description.rb
alchemy_cms-7.2.4 app/models/alchemy/picture_description.rb
alchemy_cms-7.2.3 app/models/alchemy/picture_description.rb
alchemy_cms-7.2.2 app/models/alchemy/picture_description.rb
alchemy_cms-7.2.1 app/models/alchemy/picture_description.rb