diff options
Diffstat (limited to 'app/models/resource_state_event.rb')
-rw-r--r-- | app/models/resource_state_event.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/resource_state_event.rb b/app/models/resource_state_event.rb index 1d6573b180f..f8f7965a921 100644 --- a/app/models/resource_state_event.rb +++ b/app/models/resource_state_event.rb @@ -6,6 +6,8 @@ class ResourceStateEvent < ResourceEvent validate :exactly_one_issuable + belongs_to :source_merge_request, class_name: 'MergeRequest', foreign_key: :source_merge_request_id + # state is used for issue and merge request states. enum state: Issue.available_states.merge(MergeRequest.available_states).merge(reopened: 5) |