Bringing on
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
class CreateArtists < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :artists do |t|
|
||||
t.string :name
|
||||
t.text :desc
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :artists
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,17 @@
|
||||
class CreateAlbums < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :albums do |t|
|
||||
t.string :name
|
||||
t.integer :artist_id
|
||||
t.integer :year
|
||||
t.integer :status
|
||||
t.string :pic_url
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :albums
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,18 @@
|
||||
class CreateTracks < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :tracks do |t|
|
||||
t.string :name
|
||||
t.integer :album_id
|
||||
t.integer :position
|
||||
t.integer :bonus
|
||||
t.integer :live
|
||||
t.integer :acoustic
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :tracks
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user