News for hackers. Stuff that matters.
Re:Sqitch - Sane database change management by sandGorgon on Monday August 31, 2015 @10:58AM (#10147088)
We actually use rails just to manage our db. Rails migrations are so good and sane (including the rake generator tasks) that I highly recommend it...even if you are using nodejs or something else as your actual stack.
Re:Sqitch - Sane database change management by jcoby on Monday August 31, 2015 @11:44AM (#10147327)
That's a great idea. I never would have considered that.

Do you create a full rails project to handle migrations or what? How do you integrate that in with your other code?

Re:Sqitch - Sane database change management by stevepike on Monday August 31, 2015 @12:04PM (#10147433)
I've used https://github.com/thuss/standalone-migrations with success before. It's the rails migration system as a standalone gem.
Re:Sqitch - Sane database change management by sandGorgon on Monday August 31, 2015 @01:27PM (#10147932)
A full rails project is just a few KB. All you need to do each time is run "bundle exec rails generate migration AddNameToUsers"

And then follow the migration syntax to modify your schema. Rails will take care if the timesramping, rollbacks (in most cases),etc. You can manage your indexes, primary,etc everything here. You don't need to write any other rails code.

Check this whole directory as a part of your main source repo.

Another commenter pointed out a standalone gem for migrations. That might be OK, but I'd rather use mainline rails in this case.

Re:Sqitch - Sane database change management by joesb on Monday August 31, 2015 @01:32PM (#10147960)
I could not agree more.

Rails's migration is probably the only one that works in any project condition we've been through. No problem working with legacy DB. No problem using it in the DB where other team change unrelated table. You always know what change is in each migration.