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/20180130004126_create_from_...

14 lines
457 B

defmodule Explorer.Repo.Migrations.CreateFromAddresses do
use Ecto.Migration
def change do
create table(:from_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(:from_addresses, :transaction_id, unique: true)
create index(:from_addresses, :address_id)
end
end