1
0
Fork 0
oldhaven/db/migrate/20110613130105_create_album...

18 lines
293 B
Ruby
Raw Permalink Normal View History

2011-06-14 16:05:12 +00:00
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