Artist import, page
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user