class CreateSongs < ActiveRecord::Migration
def change
create_table :songs do |t|
t.string :name
t.string :album_name
t.integer :album_id
t.references :album
t.timestamps
end
end
end
class CreateAlbums < ActiveRecord::Migration
def change
create_table :albums do |t|
t.string :title
t.string :image_url
t.timestamps
end
end
end