17 lines
288 B
Ruby
17 lines
288 B
Ruby
class CreateFavorites < ActiveRecord::Migration
|
|
def self.up
|
|
create_table :favorites do |t|
|
|
t.integer :user_id
|
|
t.integer :artist_id
|
|
t.integer :album_id
|
|
t.integer :track_id
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
drop_table :favorites
|
|
end
|
|
end
|