diff --git a/apps/explorer/mix.exs b/apps/explorer/mix.exs index 79888331d8..f110c9af8c 100644 --- a/apps/explorer/mix.exs +++ b/apps/explorer/mix.exs @@ -91,7 +91,7 @@ defmodule Explorer.Mixfile do {:math, "~> 0.3.0"}, {:mock, "~> 0.3.0", only: [:test], runtime: false}, {:mox, "~> 0.4", only: [:test]}, - {:poison, "~> 3.1", only: [:test]}, + {:poison, "~> 3.1"}, {:postgrex, ">= 0.0.0"}, # For compatibility with `prometheus_process_collector`, which hasn't been updated yet {:prometheus, "~> 4.0", override: true}, diff --git a/apps/explorer/priv/repo/migrations/20190214135850_add_index_on_block_number_to_address_token_balances.exs b/apps/explorer/priv/repo/migrations/20190214135850_add_index_on_block_number_to_address_token_balances.exs new file mode 100644 index 0000000000..356d49e096 --- /dev/null +++ b/apps/explorer/priv/repo/migrations/20190214135850_add_index_on_block_number_to_address_token_balances.exs @@ -0,0 +1,7 @@ +defmodule Explorer.Repo.Migrations.AddIndexOnBlockNumberToAddressTokenBalances do + use Ecto.Migration + + def change do + create(index(:address_token_balances, [:block_number])) + end +end