Lastfm scrobbling backend ready
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user