-
Install the ActiveRecord Session Store gem and read the documentation for how to use it and create your
sessions
table. -
Create a migration to add
user_id
to thesessions
table.
class AddUserIdToSessions < ActiveRecord::Migration
disable_ddl_transaction!