Implement tracks/{show,listen}

This commit is contained in:
Thibault Jouan
2011-07-13 18:34:41 +00:00
parent 3e7f4a7168
commit 34b38b77cf
12 changed files with 142 additions and 26 deletions

View File

@@ -0,0 +1,13 @@
class CreateTracks < ActiveRecord::Migration
def self.up
create_table :tracks do |t|
t.string :name
t.timestamps
end
end
def self.down
drop_table :tracks
end
end

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20110711195337) do
ActiveRecord::Schema.define(:version => 20110713182005) do
create_table "playlists", :force => true do |t|
t.string "name"
@@ -18,4 +18,10 @@ ActiveRecord::Schema.define(:version => 20110711195337) do
t.datetime "updated_at"
end
create_table "tracks", :force => true do |t|
t.string "name"
t.datetime "created_at"
t.datetime "updated_at"
end
end