[CRITIQUE REQUEST] Migration Practices |
[eluser]WanWizard[/eluser]
@jmadsen, I do all schema changes in migrations, including the initial creation of the database. If only because I don't want to look in two different places to find SQL that changes the DB schema. @Lewis Cowles, I don't know how you execute your development process, but in my company all dev's work from a local dev environment. I haven't got a clue what the state of the environment is of the guy sitting next to me. If he's working on a feature that requires an extra table, then he has it, but no one else does. After development is complete my co-worker will push his changes to the repo, which gets auto-deployed to your staging environment. This will run the migrations after deployment so now staging has this new table too. However, the feature hasn't been released to production, so the server running the production application is blissfully unaware there is a new table in the making. But when it passes staging, and needs to be deployed into production, I'm confident the new table will be created, thanks to the new migration file my co-worker has included. If you don't have this mechanism, you have to manually make sure the database schema is in sync with the version of your code running. Not a pleasant idea... |
Messages In This Thread |
[CRITIQUE REQUEST] Migration Practices - by El Forum - 07-01-2012, 02:17 AM
[CRITIQUE REQUEST] Migration Practices - by El Forum - 07-01-2012, 07:35 AM
[CRITIQUE REQUEST] Migration Practices - by El Forum - 07-01-2012, 10:33 AM
[CRITIQUE REQUEST] Migration Practices - by El Forum - 07-01-2012, 02:49 PM
[CRITIQUE REQUEST] Migration Practices - by El Forum - 07-01-2012, 11:59 PM
[CRITIQUE REQUEST] Migration Practices - by El Forum - 07-02-2012, 12:21 AM
[CRITIQUE REQUEST] Migration Practices - by El Forum - 07-02-2012, 02:15 AM
[CRITIQUE REQUEST] Migration Practices - by El Forum - 07-02-2012, 02:34 AM
[CRITIQUE REQUEST] Migration Practices - by El Forum - 07-02-2012, 03:55 AM
[CRITIQUE REQUEST] Migration Practices - by El Forum - 07-02-2012, 03:56 AM
[CRITIQUE REQUEST] Migration Practices - by El Forum - 07-02-2012, 04:05 AM
[CRITIQUE REQUEST] Migration Practices - by El Forum - 07-02-2012, 05:33 AM
[CRITIQUE REQUEST] Migration Practices - by El Forum - 07-02-2012, 06:52 AM
[CRITIQUE REQUEST] Migration Practices - by El Forum - 07-02-2012, 02:57 PM
[CRITIQUE REQUEST] Migration Practices - by El Forum - 11-22-2012, 11:06 AM
|