Working on an idempotent db/seeds set up today for an old rails project. So much better than copying from production. Can’t believe I haven’t done it before.
@jsrn using the find_or_create_by approach outline here https://bullettrain.co/docs/seeds and in Joe Masilottis ‘Railsdevs’ repo https://github.com/joemasilotti/railsdevs.com/blob/main/db/seeds.rb
@jordanbrock Tell me more about this! Is your data based on production at all, or is it hand-crafted using fixtures/factorybot?
Did you do anything special for idempotency above `rails db:seed:replant`?