module SingletonModel

Enforces the singleton-row contract of a model backed by a table with a unique singleton_key index. instance returns (or creates) the single row; on a bootstrap race the loser rescues RecordNotUnique and re-reads the winnerโ€™s row instead of raising.