oldhaven/app/models/artist.rb
Gregory Eremin 3ea944fbb0 Merge
2011-09-22 14:37:53 +04:00

5 lines
174 B
Ruby

class Artist < ActiveRecord::Base
has_many :albums, :order => 'has_pic DESC, year ASC, id ASC', :dependent => :destroy
has_many :artist_links, :dependent => :destroy
end