Sessions, lastfm auth workarounds

This commit is contained in:
magnolia-fan
2011-06-22 11:23:07 +04:00
parent 47b21961a0
commit 4326a4960b
17 changed files with 193 additions and 9 deletions
@@ -0,0 +1,9 @@
class AddLastfmTokenToUser < ActiveRecord::Migration
def self.up
add_column :users, :lastfm_token, :string
end
def self.down
remove_column :users, :lastfm_token
end
end
@@ -0,0 +1,14 @@
class CreateSessions < ActiveRecord::Migration
def self.up
create_table :sessions do |t|
t.integer :user_id
t.string :key
t.timestamps
end
end
def self.down
drop_table :sessions
end
end