Revision 70e65017
Added by Marc Dequènes about 15 years ago
- ID 70e65017593750754038374c7fab3b153ba60b5d
app/models/artwork.rb | ||
---|---|---|
belongs_to :artwork_condition
|
||
belongs_to :artwork_placement_reason
|
||
has_many :artwork_step_images, :order => "date ASC"
|
||
has_and_belongs_to_many :techniques, :order => "name ASC"
|
||
has_and_belongs_to_many :artwork_supports, :order => "name ASC"
|
||
|
||
validates_presence_of :title, :artwork_material_id, :artwork_size_id, :artwork_condition_id
|
||
validates_uniqueness_of :title
|
Also available in: Unified diff
[fix] renamed 'technique' into more appropriate name 'artwork_support', and update schema and translations (Closes #4)