oldhaven/app/models/artist.rb

7 lines
272 B
Ruby
Raw Normal View History

2011-06-14 20:05:12 +04:00
class Artist < ActiveRecord::Base
2011-06-30 09:29:24 +04:00
has_many :albums, :order => 'has_pic DESC, year ASC, id ASC', :dependent => :destroy
2011-09-21 00:30:42 +04:00
has_many :artist_links, :dependent => :destroy
2011-09-22 03:20:41 +04:00
has_many :artist_aliases, :dependent => :destroy
has_many :tracks, :through => :track_artists
2011-06-14 20:05:12 +04:00
end