Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commitc110e31

Browse files
committed
chore: fix migration
1 parent478ec10 commitc110e31

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
defmoduleGroupherServer.Repo.Migrations.AddDrinkCommunityJoinTabledo
2+
useEcto.Migration
3+
4+
defchangedo
5+
createtable(:communities_join_drinks)do
6+
add(:community_id,references(:communities,on_delete::delete_all),null:false)
7+
add(:drink_id,references(:cms_drinks,on_delete::delete_all),null:false)
8+
end
9+
10+
create(unique_index(:communities_join_drinks,[:community_id,:drink_id]))
11+
end
12+
end

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp