rubyforgood/abalone

Update MortalityEvent relationships to be optional: true

CraigJZ opened this issue · 2 comments

The belongs_to :animal and belongs_to :cohort relationships on MortalityEvent are not both required. In practice a. Mortality Event will have one or the other. We should make these optional.

Additionally, we could add validations for the following conditions:

  • One of these associations is present
  • Both associations are present on a single mortality event

Can I pick up this one?

@rebeccapinheiro I believe this one is in progress as part of #858. It looks like I missed updating the assignment on this issue. I'm sorry about that.