Project

General

Profile

« Previous | Next » 

Revision 3807b362

Added by Marc Dequènes over 12 years ago

  • ID 3807b362f44c00b771ed8ed5b4da60799752825b

[evol] an artwork can have multiple materials

View differences:

app/models/artwork_material.rb
1 1
class ArtworkMaterial < ActiveRecord::Base
2
  has_many :artworks, :order => "title ASC"
2
  has_and_belongs_to_many :artworks, :order => "title ASC"
3 3

  
4 4
  validates_presence_of :name
5 5
  validates_uniqueness_of :name

Also available in: Unified diff