Bringing on

This commit is contained in:
magnolia-fan
2011-06-14 20:05:12 +04:00
parent c4165a928c
commit 2c52349576
46 changed files with 1070 additions and 0 deletions
@@ -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