Fakultas Ilmu Komputer UI

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

Fix posts_like and thread_like migrations

parent 1ecf1f85
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,6 @@ defmodule Diskuy.Repo.Migrations.CreateThreadLikes do
create index(:thread_likes, [:user_id])
create index(:thread_likes, [:thread_id])
create unique_index(:threads, [:user_id, :thread_id], name: :user_thread_unique)
create unique_index(:thread_likes, [:user_id, :thread_id], name: :user_thread_unique)
end
end
......@@ -11,6 +11,6 @@ defmodule Diskuy.Repo.Migrations.CreatePostLikes do
create index(:post_likes, [:user_id])
create index(:post_likes, [:post_id])
create unique_index(:threads, [:user_id, :post_id], name: :user_post_unique)
create unique_index(:post_likes, [:user_id, :post_id], name: :user_post_unique)
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment