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