Episodes
Sathishkumar Natesan said over 1 year ago on Seed like a Pro :
Hi David - Thanks for the video. A quick thought on the '99_summary.rb' snippet - Instead of using 'ActiveRecord::Base.descendants' and excluding the non-application models, wouldn't it be easier to use 'ApplicationRecord.descendants' ?

thomasvanholder said over 1 year ago on Seed like a Pro :
Nice episode!!

dp615 said over 1 year ago on Seed like a Pro :
What about seeding ActionText content and ActiveStorage attachments?

madcowdzz said over 1 year ago on Seed like a Pro :
Does anybody use seeds.rb for environments other than development?

Tiago Ameller PRO said over 1 year ago on Seed like a Pro :
Hi,   I use a tiny test_seeds.rb file for feeding my test suite. Due in every test database is cleared, for performance issues, I just put inside some companies and users for signin.

David Kimura PRO said over 1 year ago on Seed like a Pro :
I've used it in situations where we had demo environments which would automatically reset after a period of time. Using the seeds file was very helpful to reset the data. Sales people would have their own logins which they could give a demo of the application and would perform certain functions like approving timesheets or correct missing IN/OUT punches for employees. They didn't want to prepare new data each time they had a demo for potential clients, so having the seeds generate new data each day/week was a huge timesaver for them.

Login to Comment