-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ecto changeset associations #98
Ecto changeset associations #98
Conversation
- Update association to use Ecto.Changeset functions - Make sure seeds file can creates statuses and person related to: #94
Update the item status using put_assoc
Update the list_item function to checkt the status ecto assocation value is not "deleted" ref: #94 (comment)
Update test for #94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @SimonLab 👍
Please see: #94 (comment)
field :text, :string | ||
|
||
belongs_to :status, App.Status, on_replace: :nilify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From a beginner's perspective, it doesn't make any sense that an item
would "belongs_to" a Status.
An item
can have a status
but it doesn't "belong" to the status.
This is immediately confusing and adds no value to the MVP.
To merge after #97
ref: #94