Skip to content

Commit

Permalink
Fix README
Browse files Browse the repository at this point in the history
  • Loading branch information
obregonia1 authored and mike-burns committed Dec 22, 2023
1 parent 54c7254 commit 6167a05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ column named `id` as its primary key.
For example, defining an `id` attribute with `add_attribute(:id)`, `id { ... }`,
or `sequence(:id)` will raise a `FactoryBot::AttributeDefinitionError`.

You can disable this behavior by adding the following to `config/application.rb`
or the appropriate environment configuration in `config/environments`:
You can disable this behavior by adding the following to the appropriate environment configuration in `config/environments`
e.g. `config/environments/test.rb`:

```ruby
config.factory_bot.reject_primary_key_attributes = false
Expand Down

0 comments on commit 6167a05

Please sign in to comment.