You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+2-15Lines changed: 2 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -212,24 +212,11 @@ module.exports = function (db, cb) {
212
212
213
213
## Synchronizing Models
214
214
215
-
Models can create their underlying tables in the database. You may call Model.sync() on each Model to create the underlying table or you can call db.sync() at a connection level to create all tables for all models.
216
-
217
-
```js
218
-
// db.sync() can also be used
219
-
Person.sync(function (err) {
220
-
!err &&console.log("done!");
221
-
});
222
-
```
215
+
See information in the [wiki](https://github.com/dresende/node-orm2/wiki/Synching-and-Dropping-Models).
223
216
224
217
## Dropping Models
225
218
226
-
If you want to drop a Model and remove all tables you can use the `.drop()` method.
227
-
228
-
```js
229
-
Person.drop(function (err) {
230
-
!err &&console.log("person model no longer exists!");
231
-
});
232
-
```
219
+
See information in the [wiki](https://github.com/dresende/node-orm2/wiki/Synching-and-Dropping-Models).
0 commit comments