Sessions, lastfm auth workarounds
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user