Merge pull request #1423 from poanetwork/ab-reward-index
add unique index on address_hash, block_hash and address_type for block_rewardspull/1439/head
commit
b6a49bad19
@ -0,0 +1,12 @@ |
||||
defmodule Explorer.Repo.Migrations.AddUniqueIndexToRewards do |
||||
use Ecto.Migration |
||||
|
||||
def change do |
||||
create( |
||||
unique_index( |
||||
:block_rewards, |
||||
[:address_hash, :block_hash, :address_type] |
||||
) |
||||
) |
||||
end |
||||
end |
Loading…
Reference in new issue