Commit 218579e9a8ed0ae0cb9b522a7fb4f96860b14a75

Use activerecord for session cookies
  
7777 # Use the database for sessions instead of the cookie-based default,
7878 # which shouldn't be used to store highly confidential information
7979 # (create the session table with "rake db:sessions:create")
80 # config.action_controller.session_store = :active_record_store
80 config.action_controller.session_store = :active_record_store
8181
8282 # Use SQL instead of Active Record's schema dumper when creating the test database.
8383 # This is necessary if your schema can't be completely dumped by the schema dumper,
  
1class CreateSessions < ActiveRecord::Migration
2 def self.up
3 create_table :sessions do |t|
4 t.string :session_id, :null => false
5 t.text :data
6 t.timestamps
7 end
8
9 add_index :sessions, :session_id
10 add_index :sessions, :updated_at
11 end
12
13 def self.down
14 drop_table :sessions
15 end
16end