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/20180212214442_create_trans...

18 lines
591 B

defmodule Explorer.Repo.Migrations.CreateTransactionReceipts do
use Ecto.Migration
def change do
create table(:transaction_receipts) do
add :transaction_id, references(:transactions), null: false
add :cumulative_gas_used, :numeric, precision: 100, null: false
add :gas_used, :numeric, precision: 100, null: false
add :status, :integer, null: false
add :index, :integer, null: false
timestamps null: false
end
create index(:transaction_receipts, :index)
create unique_index(:transaction_receipts, [:transaction_id, :index])
end
end