Approaches to data migration on Rails applications

I’ve been using a process with Dev databases where seeds.rb creates static reference data via ActiveRecord statements, loads in Production-editable reference data from dump files included in git, then populates realistic examples using the same FactoryBot models that are used in testing.

A good test for this is onboarding a new Dev.