diff --git a/apps/explorer/priv/repo/migrations/20191007082500_add_indexes_for_token_instances_query.exs b/apps/explorer/priv/repo/migrations/20191007082500_add_indexes_for_token_instances_query.exs new file mode 100644 index 0000000000..310f0fed02 --- /dev/null +++ b/apps/explorer/priv/repo/migrations/20191007082500_add_indexes_for_token_instances_query.exs @@ -0,0 +1,8 @@ +defmodule Explorer.Repo.Migrations.AddIndexesForTokenInstrancesQuery do + use Ecto.Migration + + def change do + create_if_not_exists(index(:token_instances, [:token_id])) + create_if_not_exists(index(:tokens, [:type])) + end +end