1
0
Fork 0
oldhaven/app/models/music/artist.rb

7 lines
282 B
Ruby

class Artist < ActiveRecord::Base
has_many :albums, :conditions => ['has_pic = 1'], :order => 'year ASC', :dependent => :destroy
has_many :artist_links, :dependent => :destroy
has_many :artist_aliases, :dependent => :destroy
has_many :tracks, :through => :track_artists
end