Evil Seed

screenshot of Evil Seed
rails

A Gem for creating partial anonymized dumps of your database using your app model relations.

Overview

EvilSeed is an innovative tool designed to create partial anonymized dumps of your database based on your application models. It addresses the challenges of using production-like data in staging environments, especially for debugging complex production bugs. Since production database backups can be voluminous and sensitive data requires careful handling, EvilSeed provides a practical solution that caters to these considerations, allowing developers to work with relevant data while maintaining privacy.

Utilizing EvilSeed can significantly enhance the efficiency of your development process by enabling you to generate manageable and anonymized data sets quickly. Whether you are dealing with a large application or simply need to streamline your staging setup, EvilSeed aims to simplify your workflow by offering a straightforward method for data dumps.

Features

  • Easy Installation: Simply add EvilSeed to your Gemfile and execute a command to start using it with minimal setup hassle.

  • Partial Anonymization: Effectively creates anonymized data dumps, protecting sensitive information while still allowing for realistic testing scenarios.

  • Database Compatibility: Works seamlessly with PostgreSQL, MySQL, and SQLite, covering a range of database systems that integrate with ActiveRecord.

  • Effortless Dump Creation: Quickly generate SQL dump files by calling the #dump method and specifying your desired file path.

  • Caveats and Tips: Offers practical advice on excluding unwanted data and inspecting dump results, helping you avoid common pitfalls associated with complex model associations.

  • Restoration Flexibility: The resulting SQL files can be restored using various SQL clients, and users can execute restoration via Ruby code if preferred.

  • Circular Dependency Handling: Provides strategies to manage circular dependencies between records during restoration, ensuring database integrity.

  • Development Support: Includes development instructions for testing and using EvilSeed as a standalone application, making it easy to customize and extend its functionalities.

rails
Ruby on Rails

Ruby on Rails, often referred to as Rails, is an open-source web application framework written in Ruby. Known for its convention over configuration and don't repeat yourself (DRY) principles, Rails simplifies and accelerates the development of database-backed web applications.