13 lines
227 B
Ruby
13 lines
227 B
Ruby
class Track < ActiveRecord::Base
|
|
set_table_name 'musicbrainz.bh_track'
|
|
belongs_to :release
|
|
|
|
def convertLength
|
|
(length /= 1000).round!
|
|
end
|
|
|
|
def clearName
|
|
name.gsub('&', 'and').gsub(/[^a-z0-9]/, '').downcase
|
|
end
|
|
end
|