smithery.ai

Data Model + Migration

Add or change database-backed models using Ecto + SQLite conventions in this codebase.

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 819 B
  • docs SUMMARY.md 114 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Scope

Use this skill when introducing or modifying persisted data.

Checklist

  • Generate migrations via mix ecto.gen.migration and update priv/repo/migrations/*.
  • Define schemas in lib/app/model with use App, :model, explicit field types, and timestamps.
  • Validate with App.Validate helpers and App.Field types (e.g. Field.TrimmedString).
  • Avoid casting programmatically-set fields; set them explicitly on the struct when creating records.
  • Use Ecto.Changeset.get_field/2 to read changeset values (no access syntax).
  • Preload associations before rendering in templates.
  • Add or update fixtures in test/support/fixtures when tests need new data.