- 02 Oct, 2013 3 commits
-
-
You can now declare unique indices like so: var User = sequelize.define('User', { username: { type: DataTypes.STRING, unique: { name: 'username_and_email', msg: 'Your username and email must be unique!' } }, email: { type: DataTypes.STRING, unique: 'username_and_email' }, aCol: { type: DataTypes.STRING, unique: true } }) Will create two unique indices one for username/email combo and the other for aCol. If a unique constraint occurs for aCol, the old behavior still occurs (emits a dialect returned error), but for username/email index the returned error would be, "Your username and email must be unique!"Daniel Durante committed -
Daniel Durante committed
-
- 01 Oct, 2013 1 commit
-
-
- 27 Sep, 2013 13 commits
-
-
Sascha Depold committed
-
Sascha Depold committed
-
https://github.com/janmeier/sequelize
Conflicts: lib/associations/has-many.js
Sascha Depold committed -
Sascha Depold committed
-
Sascha Depold committed
-
https://github.com/durango/sequelize
Conflicts: lib/dao-factory.js lib/dao.js test/support.js
Sascha Depold committed -
Sascha Depold committed
-
Sascha Depold committed
-
Basic function and trigger migrations
Sascha Depold committed -
Sascha Depold committed
-
Sascha Depold committed
-
-
- 25 Sep, 2013 2 commits
-
-
This commit fixes paranoid: true option, .find, .all, and .count will no...
Sascha Depold committed -
Daniel Durante committed
-
- 24 Sep, 2013 13 commits
-
-
Jan Aagaard Meier committed
-
This commit allows you to define a defaultValue for timestamp fields.
Jan Aagaard Meier committed -
Added a test to ensure primary keys for postgres wouldn't necessarily be...
Jan Aagaard Meier committed -
Updated depdencies.
Sascha Depold committed -
Po-Ying Chen committed
-
Daniel Durante committed
-
…by paranoid's rules. This does not test for associated models with paranoid true but it's the first step.
Daniel Durante committed -
…into a serial. Closes https://github.com/sequelize/sequelize/issues/358
Daniel Durante committed -
Daniel Durante committed
-
Daniel Durante committed
-
Daniel Durante committed
-
Update with column
Daniel Durante committed -
Jonathan M. Altman committed
-
- 23 Sep, 2013 8 commits
-
-
Po-Ying Chen committed
-
Jan Aagaard Meier committed
-
Jan Aagaard Meier committed
-
Jan Aagaard Meier committed
-
Jan Aagaard Meier committed
-
Jan Aagaard Meier committed
-
Jan Aagaard Meier committed
-
require config file to allow for json or js files
Jan Aagaard Meier committed
-