feat(rails): add rails db:migrate:reset alias (#13845)

This commit is contained in:
Nicolas Temciuc 2026-07-22 07:59:54 -03:00 committed by GitHub
commit e1d1f0dcd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 1 deletions

View file

@ -24,11 +24,12 @@ plugins=(... rails)
| `rdm` | `rails db:migrate` | Run pending db migrations |
| `rdmd` | `rails db:migrate:down` | Undo specific db migration |
| `rdmr` | `rails db:migrate:redo` | Redo specific db migration |
| `rdmrs` | `rails db:migrate:reset` | Delete the database and set it up again from scratch. |
| `rdms` | `rails db:migrate:status` | Show current db migration status |
| `rdmtc` | `rails db:migrate db:test:clone` | Run pending migrations and clone db into test database |
| `rdmu` | `rails db:migrate:up` | Run specific db migration |
| `rdr` | `rails db:rollback` | Roll back the last migration |
| `rdrs` | `rails db:reset` | Delete the database and set it up again |
| `rdrs` | `rails db:reset` | Delete the database and set it up again from schema. |
| `rds` | `rails db:seed` | Seed the database |
| `rdsl` | `rails db:schema:load` | Load the database schema |
| `rdtc` | `rails db:test:clone` | Clone the database into the test database |