Revision 3807b362
Added by Marc Dequènes about 15 years ago
- ID 3807b362f44c00b771ed8ed5b4da60799752825b
app/models/artwork_material.rb | ||
---|---|---|
class ArtworkMaterial < ActiveRecord::Base
|
||
has_many :artworks, :order => "title ASC"
|
||
has_and_belongs_to_many :artworks, :order => "title ASC"
|
||
|
||
validates_presence_of :name
|
||
validates_uniqueness_of :name
|
Also available in: Unified diff
[evol] an artwork can have multiple materials