1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-22 16:03:25 +00:00
mobilizon/priv/repo/migrations/20210310084210_add_indexes_to_activities.exs
Thomas Citharel 0f4bcdf8f1
Add indexes to group activities
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-03-10 09:54:32 +01:00

8 lines
266 B
Elixir

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