loading...

Seeding Data In Ruby On Rails

mikerogers0 profile image Mike Rogers 🛣 ・1 min read

I've been working on recording a few of my presentations, I still don't think I've perfected the style or production quality, but I'd love to hear any feedback on how to improve :)

In this video, I went though seeding in Ruby On Rails. Quite often I pickup projects where to get a local development environment up & going, I'm handed a production Database & left to it.

I'm a much bigger fan of using tools like Faker to generate useful seeds.

Mentioned Links

https://github.com/james2m/seedbank
https://github.com/faker-ruby/faker
https://thoughtbot.com/blog/factory_girl-for-seed-data
https://github.com/evilmartians/evil-seed
https://guides.rubyonrails.org/v5.0.0/active_record_migrations.html#migrations-and-seed-data

Discussion

pic
Editor guide