* Truncate all instances of the model. This is a convenient method for Model.destroy({ truncate: true }). * * @param {object} [options] The options passed to Model.destroy in addition to truncate * @param {boolean|Function} [options.cascade = false] Truncates all tables that have
(options)
| 2892 | * {@link Model.destroy} for more information |
| 2893 | */ |
| 2894 | static async truncate(options) { |
| 2895 | options = Utils.cloneDeep(options) || {}; |
| 2896 | options.truncate = true; |
| 2897 | return await this.destroy(options); |
| 2898 | } |
| 2899 | |
| 2900 | /** |
| 2901 | * Delete multiple instances, or set their deletedAt timestamp to the current time if `paranoid` is enabled. |
no test coverage detected