nullobject/rein — pull request #9 by tommeier (2012-12-12 04:55:08+00:00)
Title: Change default constraint name to be unique across database

Postgres is happy with a non-unique constraint name as it is scoped to each table, however MSSQL (and others?) require a unique constraint name across a given database.

Following the rails convention when creating indices this is kept unique like so :

```
Model : Customer
Index on field : external_id

Auto generates :
index_customers_on_external_id
```

This pull request makes the default naming convention for constraints follow this pattern.