Artist import, page

This commit is contained in:
Gregory Eremin
2012-08-27 03:53:30 +04:00
parent 235c0b809e
commit b5f616a9d9
36 changed files with 1268 additions and 312 deletions
@@ -0,0 +1,10 @@
class CreateGenres < ActiveRecord::Migration
def change
create_table :genres do |t|
t.string :rovi_id
t.string :name
t.timestamps
end
end
end
@@ -0,0 +1,10 @@
class CreateArtistGenres < ActiveRecord::Migration
def change
create_table :artist_genres do |t|
t.integer :artist_id
t.integer :genre_id
t.timestamps
end
end
end
@@ -0,0 +1,13 @@
class CreateArtists < ActiveRecord::Migration
def change
create_table :artists do |t|
t.string :rovi_id
t.string :name
t.boolean :is_group
t.text :bio
t.string :pic
t.timestamps
end
end
end
@@ -0,0 +1,13 @@
class CreateAlbums < ActiveRecord::Migration
def change
create_table :albums do |t|
t.integer :artist_id
t.string :rovi_id
t.string :title
t.integer :year
t.string :pic
t.timestamps
end
end
end
@@ -0,0 +1,14 @@
class CreateTracks < ActiveRecord::Migration
def change
create_table :tracks do |t|
t.integer :album_id
t.string :rovi_id
t.integer :disc_id
t.integer :position
t.string :title
t.integer :duration
t.timestamps
end
end
end
@@ -0,0 +1,10 @@
class CreatePerformers < ActiveRecord::Migration
def change
create_table :performers do |t|
t.integer :track_id
t.integer :artist_id
t.timestamps
end
end
end