Acts As Tenant (using Rails console)
When using Rails console with a project that's using "Acts as Tenant" gem (as Jumpstart projects do), you need to set the tenant in console before getting objects.
You can run this as the first thing after entering Rails Console:
Then you can run things in Console as you normally would.
PreviousCan't run rspec tests: ActiveRecord::StatementInvalid: PG::DuplicateTable: ERROR: relation "thing"NextReset database & re-run migrations
Last updated