From 7359b6f84910d2742fef0f8ce45fdd6e3cd39594 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Tue, 24 Oct 2023 11:08:20 +0200 Subject: [PATCH] fix: Add indices to some tables --- .../20231024085825_add_indices_to_multiple_tables.exs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 priv/repo/migrations/20231024085825_add_indices_to_multiple_tables.exs diff --git a/priv/repo/migrations/20231024085825_add_indices_to_multiple_tables.exs b/priv/repo/migrations/20231024085825_add_indices_to_multiple_tables.exs new file mode 100644 index 0000000..eca9979 --- /dev/null +++ b/priv/repo/migrations/20231024085825_add_indices_to_multiple_tables.exs @@ -0,0 +1,10 @@ +defmodule BdfrBrowser.Repo.Migrations.AddIndicesToMultipleTables do + use Ecto.Migration + + def change do + create index("posts", :author) + create index("posts", :posted_at) + create index("comments", :author) + create index("chats", :accounts) + end +end