Skip to content

Commit 8bf76ef

Browse files
committed
Removes Readme sections that are now in wiki
Synching and Dropping Models
1 parent 62c186c commit 8bf76ef

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

Readme.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -212,24 +212,11 @@ module.exports = function (db, cb) {
212212

213213
## Synchronizing Models
214214

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).
223216

224217
## Dropping Models
225218

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).
233220

234221
## Advanced Options
235222

0 commit comments

Comments
 (0)