Validate presence of issue in design version

DesignManagement::Version must always belong to an issue. We do not enforce this invariant.

We should:

  • enforce this in the model with validates :issue, presence: true
  • enforce this in the database with a NOT NULL constraint on versions.issue_id
Assignee Loading
Time tracking Loading