diff options
author | Nick Thomas <nick@gitlab.com> | 2019-03-28 13:17:42 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-03-28 16:18:23 +0000 |
commit | 013f7cd24c4359d5d704b719d85b6df7ca1fdd55 (patch) | |
tree | 4bd076e21ec1d094fd23a506fef80350f63fd9f1 /app/models/merge_request | |
parent | a74c3e6c3b418ea585f02ba15af1c7292f895a1a (diff) | |
download | gitlab-ce-013f7cd24c4359d5d704b719d85b6df7ca1fdd55.tar.gz |
Inherit from ApplicationRecord instead of ActiveRecord::Base
Diffstat (limited to 'app/models/merge_request')
-rw-r--r-- | app/models/merge_request/metrics.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/merge_request/metrics.rb b/app/models/merge_request/metrics.rb index 65e94a97b0a..05f8e18a2c1 100644 --- a/app/models/merge_request/metrics.rb +++ b/app/models/merge_request/metrics.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class MergeRequest::Metrics < ActiveRecord::Base +class MergeRequest::Metrics < ApplicationRecord belongs_to :merge_request belongs_to :pipeline, class_name: 'Ci::Pipeline', foreign_key: :pipeline_id belongs_to :latest_closed_by, class_name: 'User' |