Вы можете включить хранилище ActiveRecord для сеанса.Посмотрите в config / initializers / session_store.rb
закомментируйте строку об использовании: cookie_store
раскомментируйте строки внизу об использовании: active_record_store
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rails generate session_migration")
MyApp::Application.config.session_store :active_record_store
Создайте миграциюперед рельсами rails g session_migration
и перенести его.