diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-02 12:11:35 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-02 12:11:35 +0300 |
commit | ed0d55ded7a03c8d5da501d3c86b38084f695cae (patch) | |
tree | 8612868b90f496a1dacc29c1a7a78cd7d380a26b /app/models/analytics | |
parent | 951a32fcf3fc8766eae1430a389b77049410c371 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/analytics')
-rw-r--r-- | app/models/analytics/cycle_analytics/issue_stage_event.rb | 11 | ||||
-rw-r--r-- | app/models/analytics/cycle_analytics/merge_request_stage_event.rb | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/app/models/analytics/cycle_analytics/issue_stage_event.rb b/app/models/analytics/cycle_analytics/issue_stage_event.rb new file mode 100644 index 00000000000..1da8973ff21 --- /dev/null +++ b/app/models/analytics/cycle_analytics/issue_stage_event.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Analytics + module CycleAnalytics + class IssueStageEvent < ApplicationRecord + extend SuppressCompositePrimaryKeyWarning + + validates(*%i[stage_event_hash_id issue_id group_id project_id start_event_timestamp], presence: true) + end + end +end diff --git a/app/models/analytics/cycle_analytics/merge_request_stage_event.rb b/app/models/analytics/cycle_analytics/merge_request_stage_event.rb new file mode 100644 index 00000000000..d2f899ae933 --- /dev/null +++ b/app/models/analytics/cycle_analytics/merge_request_stage_event.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Analytics + module CycleAnalytics + class MergeRequestStageEvent < ApplicationRecord + extend SuppressCompositePrimaryKeyWarning + + validates(*%i[stage_event_hash_id merge_request_id group_id project_id start_event_timestamp], presence: true) + end + end +end |