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' ?
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.
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.