Add indices to Block.timestamp and BlockTransaction.block_id.

pull/2/head
CJ Bryan and Matt Olenick 7 years ago
parent e19c023219
commit 2c52e2d607
  1. 8
      priv/repo/migrations/20180208010839_add_indices_to_block_and_block_transaction.exs

@ -0,0 +1,8 @@
defmodule Explorer.Repo.Migrations.AddIndicesToBlockAndBlockTransaction do
use Ecto.Migration
def change do
create index(:block_transactions, :block_id)
create index(:blocks, :timestamp)
end
end
Loading…
Cancel
Save