dresende/node-orm — pull request #21 by biesnecker (2011-12-17 03:12:59+00:00)
Title: Fixes association key creation in postgresql

Looks like the creation of keys for relationships and indexes for those keys was using mysql specific SQL, which was failing with postgresql. I made a couple of simple changes and tested them in my own project, and it seems to have the desired effect.

It might be worth giving users the option of specifying if they want the autoincrement key to be serial or bigserial, and then changing the type on the association key to from integer to bigint accordingly.