Please sign in to comment.
Don't do init_backup every time db:create is run because it might be …
…slow if there is a large database that already exists. This matters especially after changing the running instances (e.g. adding more app servers) because when you do ec2onrails:setup it will run db:create (harmless) on the existing db. Added a TODO in create_database to do the backup then, but first we need to check for the existence of the db and exit if it exists.
- Loading branch information...
Showing with 4 additions and 2 deletions.