vanilla-rails-data-modeling
Installation
SKILL.md
Vanilla Rails Data Modeling
Database schema conventions from production 37signals patterns.
For state-as-records pattern details, see vanilla-rails-models.
UUID Primary Keys
All tables use UUIDs. No auto-incrementing integers.
create_table :cards, id: :uuid do |t|
t.uuid :account_id, null: false
t.string :title
t.timestamps
end
UUIDv7 (timestamp-ordered), base36 encoded as 25-character strings. No ID enumeration, merge-safe, no sequence contention.