Discogs releases import. Good.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
class CreateReleaseFormats < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :release_formats do |t|
|
||||
t.string :name
|
||||
t.string :hash
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,10 @@
|
||||
class CreateAlbumFormats < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :album_formats do |t|
|
||||
t.integer :album_id
|
||||
t.integer :release_format_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,10 @@
|
||||
class CreateAlbumGenres < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :album_genres do |t|
|
||||
t.integer :album_id
|
||||
t.integer :genre_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,10 @@
|
||||
class CreateAlbumStyles < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :album_styles do |t|
|
||||
t.integer :album_id
|
||||
t.integer :style_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
+29
-1
@@ -11,7 +11,28 @@
|
||||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20110922122407) do
|
||||
ActiveRecord::Schema.define(:version => 20110922190755) do
|
||||
|
||||
create_table "album_formats", :force => true do |t|
|
||||
t.integer "album_id"
|
||||
t.integer "release_format_id"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "album_genres", :force => true do |t|
|
||||
t.integer "album_id"
|
||||
t.integer "genre_id"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "album_styles", :force => true do |t|
|
||||
t.integer "album_id"
|
||||
t.integer "style_id"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "albums", :force => true do |t|
|
||||
t.string "name"
|
||||
@@ -122,6 +143,13 @@ ActiveRecord::Schema.define(:version => 20110922122407) do
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "release_formats", :force => true do |t|
|
||||
t.string "name"
|
||||
t.string "hash"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "sessions", :force => true do |t|
|
||||
t.integer "user_id"
|
||||
t.string "key"
|
||||
|
||||
Reference in New Issue
Block a user