ruby.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
If you are interested in the Ruby programming language, come join us! Tell us about yourself when signing up. If you just want to join Mastodon, another server will be a better place for you.

Administered by:

Server stats:

1.1K
active users

Lucian Ghinda

Is there a gem for Ruby on Rails that will allow me to select a snapshot of a production DB, clean it and make it usable in test/development environment?

I am looking at something smart enough to know to get all associations but that would allow me to say get only the first 100 records and then rename column A, B,C with random data.

@TALlama Thank you very much. This is a wonderful idea to use FactoryBot.

And I love that you have a dry_run for it :)

@lucian somebody is seeding a staging/development db!

@silent_e I like it. It takes the other routes of defining what to delete. Interesting approach