title: Rails: Undefined method 'name' in 'user' factory OR Undefined Method for all factories
body: <p>I am currently using RSpec and Factory_Bot_Rails gems for testing an application, but I am running into the issue below.</p>
  
  <p>When using factory_bot_rails version 5.0.2 gem, my factories now all give me an Undefined Method error for all my registered factories. If I downgrade the version of the gem to 4.11 it works.</p>
  
  <p>For example for my users factory, which has <strong>name</strong> as one of the defined attributes, it displays the error</p>
  
  <p><strong>Undefined method 'name' in 'user' factory</strong></p>
  
  <p>I have tried so hard to fix this issue but it's not been feasible.</p>
  
  <p>Any form of help will be highly appreciated.</p>