Hereâs a little Rails tip for splitting up seed data for various environments: Create the folder db/seeds/. For each environment you want to seed put a file in there named after the env. Your general seeds are put into db/seeds/all.rb. Hereâs what it might look like: |___seeds | |___all.rb | |___development.rb | |___staging.rb | |___production.rb |___seeds.rb Change the content of your db/seeds.rb
{{#tags}}- {{label}}
{{/tags}}