MB + Last.fm + Discogs = Import!

This commit is contained in:
magnolia-fan
2011-09-26 09:10:23 +04:00
parent 0e04dba130
commit 7582bd18a5
8 changed files with 246 additions and 154 deletions
@@ -0,0 +1,11 @@
class PrepareToMixedImport < ActiveRecord::Migration
def up
add_column :track_artists, :name, :string
add_column :albums, :master_id, :integer
end
def down
remove_column :track_artists, :name
remove_column :albums, :master_id
end
end
+3 -1
View File
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20110926002631) do
ActiveRecord::Schema.define(:version => 20110926031740) do
create_table "album_formats", :force => true do |t|
t.integer "album_id"
@@ -49,6 +49,7 @@ ActiveRecord::Schema.define(:version => 20110926002631) do
t.integer "has_pic"
t.integer "status"
t.boolean "master"
t.integer "master_id"
end
add_index "albums", ["artist_id"], :name => "index_albums_on_artist_id"
@@ -182,6 +183,7 @@ ActiveRecord::Schema.define(:version => 20110926002631) do
t.integer "artist_id"
t.boolean "main"
t.string "join"
t.string "name"
end
add_index "track_artists", ["artist_id"], :name => "index_track_artists_on_artist_id"