Import w/ desc and pics

This commit is contained in:
magnolia-fan
2011-06-15 00:01:42 +04:00
parent cb42a55f9d
commit 38e4d2496f
13 changed files with 43 additions and 243 deletions
+2
View File
@@ -1,2 +1,4 @@
class Album < ActiveRecord::Base
belongs_to :artist
has_many :tracks, :order => 'bonus ASC, position ASC'
end
+1
View File
@@ -1,2 +1,3 @@
class Artist < ActiveRecord::Base
has_many :albums, :conditions => "status = 1", :order => 'year ASC, id ASC'
end
+1
View File
@@ -1,2 +1,3 @@
class Track < ActiveRecord::Base
belongs_to :album
end