Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.

Commit 01b54fd

Browse files
committed
backend:READMEの変更
1 parent d83cc58 commit 01b54fd

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

backend/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,21 @@ python3 manage.py runserver
6161
```bash
6262
deactivate
6363
```
64+
65+
## models.py変更時
66+
67+
### 1. マイグレーションの作成
68+
69+
以下のコマンドを実行しマイグレーションファイルの作成
70+
71+
```bash
72+
python3 manage.py makemigrations
73+
```
74+
75+
出力文に問題がなければ以下のコマンドを実行してマイグレーションの適用
76+
77+
```bash
78+
python3 manage.py migrate
79+
```
80+
81+

0 commit comments

Comments
 (0)