15 lines
230 B
Ruby
15 lines
230 B
Ruby
|
class CreatePlaylists < ActiveRecord::Migration
|
||
|
def self.up
|
||
|
create_table :playlists do |t|
|
||
|
t.integer :user_id
|
||
|
t.string :name
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def self.down
|
||
|
drop_table :playlists
|
||
|
end
|
||
|
end
|