Repository navigation
Migration guide to version 2.0.0 #14
Locked
enjaku4
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This guide covers the breaking changes in Veri 2.0 and how to migrate your application.
Database Migration
Add the
original_tenantpolymorphic reference to theveri_sessionstable:For UUID primary keys, add
type: :uuid.Breaking Changes
Veri::Session#shapeshiftMethod SignatureThe
shapeshiftmethod now accepts an optionaltenant:keyword argument for cross-tenant impersonation in multi-tenant applications.Veri::Session.pruneBehaviorVeri::Session.pruneno longer removes expired or inactive sessions. It now only removes sessions with orphaned tenants.All reactions