Blockchain explorer for Ethereum based network and a tool for inspecting and analyzing EVM based blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
blockscout/priv/repo/migrations/20180130004544_create_to_ad...

15 lines
449 B

defmodule Explorer.Repo.Migrations.CreateToAddresses do
use Ecto.Migration
def change do
create table(:to_addresses, primary_key: false) do
add :transaction_id, references(:transactions), null: false, primary_key: true
add :address_id, references(:addresses), null: false
timestamps null: false
end
create index(:to_addresses, :transaction_id, unique: true)
create index(:to_addresses, :address_id)
end
end