18 lines
293 B
Ruby
18 lines
293 B
Ruby
|
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
|