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

11 lines
264 B
Elixir
Raw Permalink Normal View History

2023-10-24 09:08:20 +00:00
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