This commit is contained in:
parent
6bce856193
commit
7359b6f849
1 changed files with 10 additions and 0 deletions
|
@ -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
|
Reference in a new issue