MCPcopy
hub / github.com/sequelize/sequelize / removeAttribute

Method removeAttribute

lib/model.js:1278–1281  ·  lib/model.js::Model.removeAttribute

* Remove attribute from model definition * * @param {string} attribute name of attribute to remove

(attribute)

Source from the content-addressed store, hash-verified

1276 * @param {string} attribute name of attribute to remove
1277 */
1278 static removeAttribute(attribute) {
1279 delete this.rawAttributes[attribute];
1280 this.refreshAttributes();
1281 }
1282
1283 /**
1284 * Sync this Model to the DB, that is create the table.

Callers 6

model.test.jsFile · 0.80
belongs-to.test.jsFile · 0.80
create.test.jsFile · 0.80
findOne.test.jsFile · 0.80
findall.test.jsFile · 0.80

Calls 1

refreshAttributesMethod · 0.95

Tested by

no test coverage detected