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 de0e63e commit 6175f01
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,21 @@ Or install it yourself as:
$ gem install request_migrations
```

Next, you need to run generator:

```bash
$ 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

**`request_migrations` supports Ruby 3.1 and above.** We encourage you to upgrade if you're on an older
Expand Down

0 comments on commit 6175f01

Please sign in to comment.