Skip to content

Commit 90181da

Browse files
author
Mohammed
committed
add base generators instructions to Readme.md
1 parent 3915de7 commit 90181da

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,16 @@ $ gem install request_migrations
5858
Next, you need to run generator:
5959

6060
```bash
61-
$ rails generate request_migrations:install # -v 1.1 -pv 1.0
61+
$ rails generate request_migrations:install # --api_version 1.1 --api_prev_version 1.0 # or -v 1.1 -pv 1.0
62+
```
63+
64+
This will generate the initializer file `request_migrations.rb` under `initializers` folder, and BaseMigration file `base_migration.rb` under `app/migrations/` folder as it's recommended folder for migrations files.
65+
66+
Also, you can add more migration files using
67+
68+
69+
```bash
70+
$ rails generate request_migrations:migration user # --actions create update --description "doing some data migration" or -a create update -d "doing some data migration"
6271
```
6372

6473
## Supported Rubies

0 commit comments

Comments
 (0)