Packages

An open and opinionated DeFi/CeFi/TradFi trading platform using productive & familiar open source libraries and tools for strategy research, execution and operation

Current section

Files

Jump to
prop priv repo migrations 20191116040535_create_workbench_wallets.exs
Raw

priv/repo/migrations/20191116040535_create_workbench_wallets.exs

defmodule Prop.Repo.Migrations.CreateWorkbenchWallets do
use Ecto.Migration
def change do
create table(:wallets) do
add(:name, :string, null: false)
add(:asset, :string, null: false)
add(:amount, :decimal, null: false)
add(:address, :string, null: false)
timestamps()
end
create(unique_index(:wallets, [:name, :asset]))
end
end