Log scrobblings

This commit is contained in:
magnolia-fan
2011-11-29 23:42:21 +04:00
parent 74b5619748
commit 41e9165ff4
12 changed files with 116 additions and 77 deletions
@@ -0,0 +1,9 @@
class CreateScrobbles < ActiveRecord::Migration
def change
create_table :scrobbles do |t|
t.integer :user_id
t.integer :track_id
t.datetime :scrobbled_at
end
end
end
+7 -1
View File
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20111127102836) do
ActiveRecord::Schema.define(:version => 20111129193103) do
create_table "album_formats", :force => true do |t|
t.integer "album_id"
@@ -166,6 +166,12 @@ ActiveRecord::Schema.define(:version => 20111127102836) do
add_index "release_formats", ["hash"], :name => "index_release_formats_on_hash"
create_table "scrobbles", :force => true do |t|
t.integer "user_id"
t.integer "track_id"
t.datetime "scrobbled_at"
end
create_table "sessions", :force => true do |t|
t.integer "user_id"
t.string "key"