Skip to content

Commit fb75146

Browse files
authored
Merge pull request #78 from tecladocode/jose/cou-146-rest-remove-dbcreate_all-when-using
2 parents 3f3f278 + a0116ab commit fb75146

File tree

1 file changed

+9
-0
lines changed
  • docs/docs/09_flask_migrate/02_add_flask_migrate_to_app

1 file changed

+9
-0
lines changed

docs/docs/09_flask_migrate/02_add_flask_migrate_to_app/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,12 @@ api = Api(app)
3636
with app.app_context():
3737
db.create_all()
3838
```
39+
40+
Since we will be using Flask-Migrate to create our database, we no longer need to tell Flask-SQLAlchemy to do it when we create the app.
41+
42+
Delete these two lines:
43+
44+
```py
45+
with app.app_context():
46+
db.create_all()
47+
```

0 commit comments

Comments
 (0)