StrawHat.Map v0.3.1 StrawHat.Map.Schema.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.Schema.State.t/0
associated with the county.state_id
:id
ofStrawHat.Map.Schema.State.t/0
associated with the county
Functions
Validate 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.Schema.County{ __meta__: term(), id: term(), name: String.t(), state: StrawHat.Map.Schema.State.t() | Ecto.Association.NotLoaded.t(), state_id: String.t() }
name
: Name of the county.state
:StrawHat.Map.Schema.State.t/0
associated with the county.state_id
:id
ofStrawHat.Map.Schema.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()
Validate the attributes and return a Ecto.Changeset for the current County.