Lastfm scrobbling backend ready

This commit is contained in:
magnolia-fan
2011-06-23 02:56:32 +04:00
parent 4326a4960b
commit 8c33730252
9 changed files with 78 additions and 49 deletions
@@ -0,0 +1,11 @@
class AddLastfmUsernameToUsers < ActiveRecord::Migration
def self.up
add_column :users, :lastfm_username, :string
rename_column :users, :lastfm_token, :lastfm_key
end
def self.down
rename_column :users, :lastfm_key, :lastfm_token
remove_column :users, :lastfm_username
end
end
+3 -2
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20110622053238) do
ActiveRecord::Schema.define(:version => 20110622204123) do
create_table "albums", :force => true do |t|
t.string "name"
@@ -98,7 +98,8 @@ ActiveRecord::Schema.define(:version => 20110622053238) do
t.integer "vkid"
t.datetime "created_at"
t.datetime "updated_at"
t.string "lastfm_token"
t.string "lastfm_key"
t.string "lastfm_username"
end
end