Seeding the DB: Best approach?

This page summarizes the projects mentioned and recommended in the original post on /r/rails

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • faker

    A library for generating fake data such as names, addresses, and phone numbers. (by faker-ruby)

  • factory_bot

    A library for setting up Ruby objects as test data.

  • Not sure if you want the execution speed to be faster, or the development speed. If it's development, you can use FactoryBot in a script to generate data easily once you have your factories set up.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • postgres-copy

    Simple PostgreSQL's COPY command support in ActiveRecord models

  • Maybe with something like pg-copy or the gem postgres-copy? pg-copy is a PostgreSQL command which lets you copy data from another database, table or file. postgres-copy lets you copy from csv or dat file.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts