Skip to content

DB view-backed models

Latest
Compare
Choose a tag to compare
@sskirby sskirby released this 16 Jul 16:42
· 5 commits to main since this release

Vorpal now supports Ruby models that are backed by DB views out of the box!

Previous versions require the following code to support view-backed models: engine.mapper_for(DomainClass).db_class.primary_key = 'id'

This is especially helpful for doing ZDT-safe database refactorings.