Add basic playlists management
* Index of playlists * Create a new playlist * Basic playlist model with mandatory name
This commit is contained in:
13
db/migrate/20110711195337_create_playlists.rb
Normal file
13
db/migrate/20110711195337_create_playlists.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class CreatePlaylists < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :playlists do |t|
|
||||
t.string :name
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :playlists
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user