]> git.openstreetmap.org Git - rails.git/commit
Automatically generate factories instead of fixtures
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 17 Dec 2025 12:47:57 +0000 (12:47 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 17 Dec 2025 12:47:57 +0000 (12:47 +0000)
commitb5d1b7f8179fd5a4d557a35b457e834c42a6e0a3
tree9e996d39854e804c3a9187eea59fe4fa0d2e8e3b
parentb78e341b970197ac3b18a3c7bf83a4da028e1980
Automatically generate factories instead of fixtures

From the factory_bot_rails README:

> Including factory_bot_rails in the development group of your Gemfile
> will cause Rails to generate factories instead of fixtures.

This is helpful for any developers running "rails generate model {modelname}".
Gemfile