Current section
Files
Jump to
Current section
Files
priv/repo/migrations/20210607175224_create_history_predicted_funding_rates.exs
defmodule Prop.Repo.Migrations.CreateHistoryPredictedFundingRates do
use Ecto.Migration
def change do
create table(:predicted_funding_rates) do
add :next_funding_time, :utc_datetime, null: false
add :venue, :string, null: false
add :product, :string, null: false
add :next_funding_rate, :decimal, null: false
timestamps()
end
create unique_index(:predicted_funding_rates, [:next_funding_time, :venue, :product])
end
end