Database Migrations
Automates and validates database schema migrations using SQL scripts, ensuring data integrity and consistency across environments.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add thibautbaissac-database-migrations npx -- -y @trustedskills/thibautbaissac-database-migrations
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"thibautbaissac-database-migrations": {
"command": "npx",
"args": [
"-y",
"@trustedskills/thibautbaissac-database-migrations"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill automates database migrations, allowing for controlled and repeatable changes to your database schema. It handles the generation of migration files based on model changes, executes those migrations, and rolls them back if necessary. This ensures a reliable process for evolving your database structure over time.
When to use it
- You've made changes to your data models (e.g., adding columns, changing data types) and need to update the database schema accordingly.
- You want to automate the creation of migration files instead of manually writing them.
- You need to roll back a previous migration due to errors or unexpected behavior during deployment.
- You're deploying an application with changes that require database modifications.
Key capabilities
- Generates migration files based on model changes.
- Executes generated migrations.
- Rolls back migrations if needed.
Example prompts
- "Generate a new migration to add an 'email' column to the users table."
- "Run all pending database migrations."
- "Rollback the last executed migration."
Tips & gotchas
This skill is designed for Rails applications and relies on the rails command-line tool. Ensure that your environment is properly configured with a valid Rails project before using this skill.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.