Skip to content

Instantly share code, notes, and snippets.

@thisismydesign
Last active January 26, 2019 17:23
Show Gist options
  • Save thisismydesign/acf9ce635cd80f92a1ecb3c5fc96307d to your computer and use it in GitHub Desktop.
Save thisismydesign/acf9ce635cd80f92a1ecb3c5fc96307d to your computer and use it in GitHub Desktop.
Ruby: When and how to use factories for seeding? /1
seed_file = Rails.root.join('db', 'seeds', "#{Rails.env}.rb")
load seed_file if File.file?(seed_file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment