diff --git a/apps/explorer/priv/repo/migrations/20190219082636_add_indexes_for_block_reward_query.exs b/apps/explorer/priv/repo/migrations/20190219082636_add_indexes_for_block_reward_query.exs new file mode 100644 index 0000000000..18f06b8999 --- /dev/null +++ b/apps/explorer/priv/repo/migrations/20190219082636_add_indexes_for_block_reward_query.exs @@ -0,0 +1,8 @@ +defmodule Explorer.Repo.Migrations.AddIndexesForBlockRewardQuery do + use Ecto.Migration + + def change do + create(index(:blocks, [:number])) + create(index(:emission_rewards, [:block_range])) + end +end