2011-06-14 16:05:12 +00:00
|
|
|
class Album < ActiveRecord::Base
|
2011-06-14 20:01:42 +00:00
|
|
|
belongs_to :artist
|
2011-06-20 14:32:08 +00:00
|
|
|
has_many :tracks, :order => 'bonus ASC, position ASC', :dependent => :destroy
|
2011-09-20 20:30:42 +00:00
|
|
|
has_many :local_brainz_releases, :class_name => 'LocalBrainz::Release', :dependent => :destroy
|
2011-06-14 16:05:12 +00:00
|
|
|
end
|