What is the best way to dump my development database structure and deploy it to a production server?
Im using capistrano deployment for rails app
- how would one migrate changes in development database structure automatic with each cap deploy?
What is the best way to dump my development database structure and deploy it to a production server?
Im using capistrano deployment for rails app
You can add a migration that executes your schema dump. Then use migrations to make changes after that.
Then, you'll execute cap deploy:migrations to deploy your code and run your migrations.