defmodule Parent do
schema "parents" do
field :name, :string
field :is_test, :boolean
has_many :children, Child
timestamps
end
enddefmodule Child do
schema "children" do
field :count, :float
field :value, :float
belongs_to :parent, Parent
timestamps
end
end--
You received this message because you are subscribed to the Google Groups "elixir-ecto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-ecto...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-ecto/e97dcc0c-956c-4f32-92fc-bc0e4bb6b5ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-ecto+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-ecto/e97dcc0c-956c-4f32-92fc-bc0e4bb6b5ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.