Log scrobblings
This commit is contained in:
@@ -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
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user