mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-18 00:17:25 +00:00
The cookie store is not big enough in some cases. In order to solve a CookieOverflow error and maybe track down the underlying issue this patch uses the database instead of cookies to store session data.
13 lines
270 B
Ruby
13 lines
270 B
Ruby
class AddSessionsTable < ActiveRecord::Migration
|
|
def change
|
|
create_table :sessions do |t|
|
|
t.string :session_id, :null => false
|
|
t.text :data
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :sessions, :session_id
|
|
add_index :sessions, :updated_at
|
|
end
|
|
end
|