Skip to content

Commit

Permalink
add base generators instructions to Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammed committed Aug 20, 2022
1 parent 3915de7 commit 90181da
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,16 @@ $ gem install request_migrations
Next, you need to run generator:

```bash
$ rails generate request_migrations:install # -v 1.1 -pv 1.0
$ rails generate request_migrations:install # --api_version 1.1 --api_prev_version 1.0 # or -v 1.1 -pv 1.0
```

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.

Also, you can add more migration files using


```bash
$ rails generate request_migrations:migration user # --actions create update --description "doing some data migration" or -a create update -d "doing some data migration"
```

## Supported Rubies
Expand Down

0 comments on commit 90181da

Please sign in to comment.