Skip to content

Commit

Permalink
Add custom Rails generator in README.md [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
edudepetris authored and mike-burns committed Sep 1, 2023
1 parent a0adccc commit 3995e62
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ Note that factory\_bot\_rails will only use this custom template if you are
generating each factory in a separate file; it will have no effect if you are
generating all of your factories in `test/factories.rb` or `spec/factories.rb`.

Factory\_bot\_rails will add a custom generator:

```shell
rails generate factory_bot:model NAME [field:type field:type] [options]
```

[default factory template]: https://github.com/thoughtbot/factory_bot_rails/tree/master/lib/generators/factory_bot/model/templates/factories.erb

## Contributing
Expand Down

0 comments on commit 3995e62

Please sign in to comment.