oldhaven/app/models/album.rb
2011-06-20 18:32:08 +04:00

5 lines
138 B
Ruby

class Album < ActiveRecord::Base
belongs_to :artist
has_many :tracks, :order => 'bonus ASC, position ASC', :dependent => :destroy
end