Last active
January 26, 2019 17:23
-
-
Save thisismydesign/acf9ce635cd80f92a1ecb3c5fc96307d to your computer and use it in GitHub Desktop.
Ruby: When and how to use factories for seeding? /1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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