Hacker News new | ask | show | jobs
by tony-vlcek 247 days ago
Also 2, as part of migrations:

There 3 types of migration files/scripts: structure, basic-data, dummy-data.

structure - new table, add column goes here basic-data - e.g. default config values go here dummy-data - gets used on local and stating

Run migrations with a flag to include the dummy-data migrations.

1 comments

+1 for this approach.

The big benefit here is not just your staging database, but everybody's locally running databases also get prepopulated data which is really useful for development and testing.