debian-mirror-gitlab/app/models/merge_request/metrics.rb

9 lines
284 B
Ruby
Raw Normal View History

2018-11-20 20:47:30 +05:30
# frozen_string_literal: true
2019-07-07 11:18:12 +05:30
class MergeRequest::Metrics < ApplicationRecord
2016-09-29 09:46:39 +05:30
belongs_to :merge_request
2017-08-17 22:00:37 +05:30
belongs_to :pipeline, class_name: 'Ci::Pipeline', foreign_key: :pipeline_id
2018-03-17 18:26:18 +05:30
belongs_to :latest_closed_by, class_name: 'User'
belongs_to :merged_by, class_name: 'User'
2016-09-29 09:46:39 +05:30
end