App Presets › Solo-default
Solo-default (personal)
What it is. The default shape modelrails_base ships with. Every user auto-gets a personal workspace on signup. They can be invited to additional workspaces (org or personal) by other users. The workspace switcher’s menu lists their other workspaces once they belong to more than one, and “New workspace” is on the All workspaces page from the start.
Who it’s for. Prosumer / multi-workspace tools — products where a solo user can use the app meaningfully alone (in their personal workspace) but team workspaces are also a first-class concept. Notion, Figma, Linear’s personal tier all fit this shape.
How users relate
The shape modelrails_base ships with: each person gets their own personal workspace on signup — one per user. They can also be invited to shared workspaces later:
What you get out of the box. This is the shipped state; no configuration changes are needed to land on it.
| Knob | Value | Mechanism |
|---|---|---|
signup.mode |
:invite_only (default — set SIGNUP_MODE=open to flip) |
config/initializers/signup.rb |
tenancy.onboarding |
:personal (default — WORKSPACE_ON_SIGNUP, or the preset .fork.yml records) |
User#onboard_workspace (after_create) dispatches to create_personal_workspace |
tenancy.workspace_creation |
:enabled (default — TENANCY_WORKSPACE_CREATION) |
RequiresWorkspaceCreationEnabled lets any authenticated user reach WorkspacesController#new |
permitted_join_strategies |
[:invite] (default — SIGNUP_PERMITTED_JOIN_STRATEGIES) |
Invitation.consume! is the single membership-grant path |
Three specific behaviors worth knowing:
- The workspace switcher names the current workspace on every workspace page, personal included — a solo user sees their one workspace (and their role) at the top of the sidebar, or above the section tabs on a phone. The menu lists other workspaces only once there are two or more; until then its only row is “All workspaces”.
- Invitation acceptance is email-bound across every path (signup / OAuth / magic-link / signed-in accept) — a leaked invite link cannot be redeemed by someone else. Magic-link invitations (no email set) remain intentionally bearer. See PRs #175, #176, #180, #182.
- Email verification uses Rails 8
generates_token_for— signed, stateless, single-use. SeeAuthentication#generates_token_for :email_verification.
How to verify your setup is Solo-default. After cloning and bootstrapping (bin/setup), open a console:
bin/rails console
user = User.create!(
email_address: "test@example.com",
first_name: "Test", last_name: "User"
)
user.workspaces.count # => 1
user.workspaces.first.personal? # => true
user.workspaces.first.memberships.first.role.slug # => "owner"
Three positives confirm the preset: a new user has exactly one workspace, it’s flagged personal, and they own it.
Browser verification (optional, requires SIGNUP_MODE=open or a valid invitation) — sign up a fresh user and confirm:
- After verifying their email, they land on the home page; Go to your workspaces lists their personal workspace.
- The workspace switcher names their personal workspace with the role Owner; its menu lists no other workspace yet.
/workspaces/newis accessible and creates a second workspace.
When to switch presets.
- “Every user should land in one shared workspace — there should be no personal workspaces, and the switcher should never list a second one.” → Single-tenant.
- “I need self-serve join via shareable links (
open_link).” → Open SaaS. Email-domain auto-join and a request-and-approve flow are not built.
Next steps
- ← Compare all presets — the decision matrix and the other three shapes.
- Extending ModelRails → — add your own workspace-scoped features on top of this preset.