Apps: add user_id index
[akkoma] / priv / repo / migrations / 20171024121413_add_object_actor_index.exs
index 344c9c825dd0f2401e0ace4d17f3c316026f1b65..78084536c0fa1f8b198f80b2b25033825bb09a66 100644 (file)
@@ -4,6 +4,11 @@ defmodule Pleroma.Repo.Migrations.AddObjectActorIndex do
   @disable_ddl_transaction true
 
   def change do
-    create index(:objects, ["(data->>'actor')", "(data->>'type')"], concurrently: true, name: :objects_actor_type)
+    create(
+      index(:objects, ["(data->>'actor')", "(data->>'type')"],
+        concurrently: true,
+        name: :objects_actor_type
+      )
+    )
   end
 end