oldhaven/app/models/album.rb

5 lines
138 B
Ruby
Raw Normal View History

2011-06-14 20:05:12 +04:00
class Album < ActiveRecord::Base
2011-06-15 00:01:42 +04:00
belongs_to :artist
2011-06-20 18:32:08 +04:00
has_many :tracks, :order => 'bonus ASC, position ASC', :dependent => :destroy
2011-06-14 20:05:12 +04:00
end