This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
bdfr-browser/priv/repo/migrations/20231024085825_add_indices_to_multiple_tables.exs
Daniel Kempkens 7359b6f849
All checks were successful
Build / build (push) Successful in 4m2s
fix: Add indices to some tables
2023-10-24 11:08:20 +02:00

11 lines
264 B
Elixir

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