diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-18 06:12:04 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-18 06:12:04 +0300 |
commit | a3633566291bf9889f2e03e7e2d472f5bc5a5c9f (patch) | |
tree | 1c98fd309cb08d5ef0439334854be9af007066ed /app/models/merge_request_context_commit.rb | |
parent | 5f9ac8c745b8c727859e3c0a97bf88ec7a228dac (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/merge_request_context_commit.rb')
-rw-r--r-- | app/models/merge_request_context_commit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/merge_request_context_commit.rb b/app/models/merge_request_context_commit.rb index ebbdecf8aa7..281e11c7c13 100644 --- a/app/models/merge_request_context_commit.rb +++ b/app/models/merge_request_context_commit.rb @@ -12,7 +12,7 @@ class MergeRequestContextCommit < ApplicationRecord validates :sha, presence: true validates :sha, uniqueness: { message: 'has already been added' } - serialize :trailers, Serializers::Json # rubocop:disable Cop/ActiveRecordSerialize + attribute :trailers, :ind_jsonb validates :trailers, json_schema: { filename: 'git_trailers' } # Sort by committed date in descending order to ensure latest commits comes on the top |