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