Merge branch 'add-indexes-to-group' into 'master'

Add indexes to group activities

See merge request framasoft/mobilizon!853
This commit is contained in:
Thomas Citharel 2021-03-10 09:25:31 +00:00
commit 58ee8e679b

View file

@ -0,0 +1,8 @@
defmodule Mobilizon.Storage.Repo.Migrations.AddIndexesToActivities do
use Ecto.Migration
def change do
create(index(:activities, [:group_id], name: "activity_group_id"))
create(index(:activities, [:author_id, :type], name: "activity_filter"))
end
end