| Use Case | Command | Description |
|---|---|---|
| Create a new migration file | create_migration |
Generates a migration file with the next version number |
| Get migration class name | migration_class_name |
Returns the class name derived from the migration file name |
| Get migration file name | migration_file_name |
Returns the file name (without version prefix) |
| Get migration version number | migration_number |
Returns the numeric version prefix of the migration |
| Render migration template | migration_template |
Processes a template file for migration content |
| Set instance variables | set_migration_assigns! |
Initializes migration class name, file name, and number |
ActiveSupport::Concern (from /home/chedong/.local/share/rdoc)
Holds common methods for migrations. It assumes that migrations have the [0-9]*_name format 🌐 and can be used by other frameworks (like Sequel) just by implementing the next migration version method.
create_migrationmigration_class_namemigration_file_namemigration_numbermigration_templateset_migration_assigns!attr_reader migration_class_name — 📛 The class name of the migrationattr_reader migration_file_name — 📄 The file name of the migration (without prefix)attr_reader migration_number — 🔢 The numeric version prefixGenerated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-29 05:23 @216.73.217.46
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format