dresende/node-orm — pull request #84 by Gamaroff (2012-11-28 13:28:24+00:00)
Title: Update lib/associations/one.js

Add a feature to specify the name of the foreign key.

If the following exists:

```
TABLE Shop
(
id integer,
name character varying,
owner_id integer
)
```
```
TABLE User
(
id integer,
name character varying
)
```
Shop will have one Owner and will be associated with the User table.
The association instead of looking for 'user_id' will look for 'owner_id'.
Associated object on Shop will be called 'owner'.

# Example
```
Shop.hasOne('owner', User, { foreignKey : 'owner' });
```