Refactored artist import using mbrainz n lastfm gems. Improved stability

This commit is contained in:
magnolia-fan
2011-06-24 13:36:44 +04:00
parent ecb47b27e7
commit 89776db403
10 changed files with 177 additions and 128 deletions
@@ -0,0 +1,9 @@
class AddMbidToTrack < ActiveRecord::Migration
def self.up
add_column :tracks, :mbid, :string
end
def self.down
remove_column :tracks, :mbid
end
end
+2 -1
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20110622204123) do
ActiveRecord::Schema.define(:version => 20110624073136) do
create_table "albums", :force => true do |t|
t.string "name"
@@ -90,6 +90,7 @@ ActiveRecord::Schema.define(:version => 20110622204123) do
t.datetime "updated_at"
t.integer "length"
t.string "country"
t.string "mbid"
end
create_table "users", :force => true do |t|