0

I want to assemble the data and settings of a Rails application offline and then push it to production. The ideal scenario is if I set up the application state offline locally and then have that exact same data and application code state in the server in production.

Is there a way to automatically generate a seed file based on the data in the current development database?

Raj
  • 3,051
  • 6
  • 39
  • 57

1 Answers1

1

There are a couple of gems that will probably provide what you're looking for e.g. seed_dump, https://github.com/rroblak/seed_dump. Also this question may help - Create seed file from data already in the database

Community
  • 1
  • 1
margo
  • 2,927
  • 1
  • 14
  • 31