thoughtbot / factory_bot_rails

Factory Bot ♥ Rails
https://thoughtbot.com/services/ruby-on-rails
MIT License
3.07k stars 369 forks source link

Rails ignoring factory #362

Closed carlosmedrano97 closed 4 years ago

carlosmedrano97 commented 4 years ago

After running the rails g model command, a factory is not generated instead a fixture is created

entcheva commented 4 years ago

Hi @carlosMedrano27 - can you provide a code snippet? What was the exact Rails command that you ran? If you have any factory_bot specific configuration in your project, can you share it here?

composerinteralia commented 4 years ago

I manually tested the generator in a new Rails application and was not able to reproduce this behavior. It might be worth checking that you have factory_bot_rails in the development section of your Gemfile.

I am going to close this issue for now. Feel free to reopen if there is additional context that would help us reproduce this behavior.

Thank you!