Commit 03d1f887 authored by Mark Chao's avatar Mark Chao

Add convenience through association

parent 8d403ef6
......@@ -17,6 +17,7 @@ module EE
has_internal_id :iid, scope: :group, init: ->(s) { s&.group&.epics&.maximum(:iid) }
has_many :epic_issues
has_many :issues, through: :epic_issues
validates :group, presence: true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment