What problem does it solve?
This Skill simplifies database management for Rails applications, allowing you to easily run migrations, seed data, and execute custom Ruby scripts or queries against specific event databases without the overhead of a full Rails server. It streamlines development and maintenance tasks, saving you time and effort.
Core Features & Use Cases
- Standard DB Commands: Provides quick access to essential Rails database commands like
db:prepare, db:migrate, db:seed, and db:fixtures:load.
- Offline Script Execution: The
bin/run utility allows executing Ruby files or inline code against any database, including test databases, without starting a Rails console.
- Data Query & Manipulation: Facilitates common database operations such as counting records, plucking attributes, and listing related data across different event databases.
- Use Case: To quickly audit the number of heats in a specific event, use this skill to run
bin/run db/2025-boston.sqlite3 -e "Heat.count", getting an immediate result without needing to start a Rails console or server.
Quick Start
Use the database skill to count the number of people in the test database.