What problem does it solve?
This Skill aids in the design, management, and audit of the domain and persistence layer of Rails applications. It streamlines tasks related to models, associations, validations, scopes, enums, callbacks, and type modeling, along with database migrations, indexing, constraints, schema format, multiple databases, full-text search, and seeds.
Core Features & Use Cases
- Modeling and Persistence: Design and evolve ActiveRecord models, associations, validations, scopes, enums, callbacks, and type modeling.
- Migrations and Indexing: Write, edit, and reverse migrations; add indexes and constraints.
- Schema Format: Choose and manage the schema format between
schema.rb and structure.sql.
- Full-Text Search: Implement full-text or fuzzy search over models.
- Change Auditing: Record changes to models for audit trails or versioning.
- Data Protection: Encrypt columns, record consent, export, and erase personal data.
- Use Case: If you need to create a new model with associations and validations, generate a migration for a new table, or implement full-text search on a model, this Skill can help you do it efficiently.
Quick Start
Use the rails-models skill to create a new model with associations and validations for a User.