MCPcopy Index your code
hub / github.com/sequelize/sequelize / removeAttribute

Method removeAttribute

src/model.js:1316–1319  ·  view source on GitHub ↗

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

(attribute)

Source from the content-addressed store, hash-verified

1314 * @param {string} attribute name of attribute to remove
1315 */
1316 static removeAttribute(attribute) {
1317 delete this.rawAttributes[attribute];
1318 this.refreshAttributes();
1319 }
1320
1321 /**
1322 * 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
find-all.test.jsFile · 0.80

Calls 1

refreshAttributesMethod · 0.95

Tested by

no test coverage detected