Skip to content

Commit

Permalink
fix: 誤字の訂正
Browse files Browse the repository at this point in the history
  • Loading branch information
yukikamome316 committed Dec 18, 2023
1 parent 11c47e7 commit 7371424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ backend 配下は次のようなディレクトリとファイルで構成され
return err
```

これは`model/post.go``model/user.go`に定義されているモデルをデータベースに追加する処理です。このように、Bunのmigration機能では実際にアップデートの処理するときの処理を手動でup migrationに書く必要があります。
これは`model/post.go``model/user.go`に定義されているモデルをデータベースに追加する処理です。このように、Bunのmigration機能では実際にアップデートの処理を手動でup migrationに書く必要があります。

また、down migrationの処理はup migrationの処理を完全に打ち消せるように書きます。
例えば、`20231109002750_create_initial_tables.go`ではup migrationで`posts`テーブルと`users`テーブルを作成します。よって、down migrationではこれらのテーブルを削除するような処理を書きます。
Expand Down

0 comments on commit 7371424

Please sign in to comment.