StrawHat.Map v1.2.0 StrawHat.Map.County View Source
Represents a County Ecto Schema with functionality about the data validation for County.
Link to this section Summary
Types
Check t/0
type for more information about the keys
name
: Name of the county.state
:StrawHat.Map.State.t/0
associated with the county.state_id
:id
ofStrawHat.Map.State.t/0
associated with the county
Functions
Validates the attributes and return a Ecto.Changeset for the current County
Link to this section Types
Check t/0
type for more information about the keys.
Link to this type
t()
View Source
t() :: %StrawHat.Map.County{ __meta__: term(), id: term(), inserted_at: term(), name: String.t(), state: StrawHat.Map.State.t() | Ecto.Association.NotLoaded.t(), state_id: String.t(), updated_at: term() }
name
: Name of the county.state
:StrawHat.Map.State.t/0
associated with the county.state_id
:id
ofStrawHat.Map.State.t/0
associated with the county.
Link to this section Functions
Link to this function
changeset(city, county_attrs)
View Source
changeset(t(), county_attrs()) :: Ecto.Changeset.t()
Validates the attributes and return a Ecto.Changeset for the current County.