Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 11d40a1f authored by Muhammad Rafif Elfazri's avatar Muhammad Rafif Elfazri
Browse files

Merge branch 'rafif-auth' into 'master'

Change db post like delete_all

See merge request diskuy!76
parents c0b6c740 1bd470e5
No related branches found
No related tags found
1 merge request!76Change db post like delete_all
......@@ -3,8 +3,8 @@ defmodule Diskuy.Repo.Migrations.CreatePostLikes do
def change do
create table(:post_likes) do
add :user_id, references(:users, on_delete: :nothing)
add :post_id, references(:posts, on_delete: :nothing)
add :user_id, references(:users, on_delete: on_delete: :delete_all)
add :post_id, references(:posts, on_delete: on_delete: :delete_all)
timestamps()
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment