Changed the bidding round status field from "running" to "stopped".
This commit is contained in:
@ -6,7 +6,7 @@ defmodule BeetRoundServer.BiddingRounds.BiddingRound do
|
||||
@foreign_key_type :binary_id
|
||||
schema "bidding_rounds" do
|
||||
field :round_number, :integer
|
||||
field :running, :boolean, default: false
|
||||
field :stopped, :boolean, default: false
|
||||
|
||||
timestamps(type: :utc_datetime)
|
||||
end
|
||||
@ -14,7 +14,7 @@ defmodule BeetRoundServer.BiddingRounds.BiddingRound do
|
||||
@doc false
|
||||
def changeset(bidding_round, attrs) do
|
||||
bidding_round
|
||||
|> cast(attrs, [:round_number, :running])
|
||||
|> validate_required([:round_number, :running])
|
||||
|> cast(attrs, [:round_number, :stopped])
|
||||
|> validate_required([:round_number, :stopped])
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user