diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2018-04-06 10:57:19 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-04-06 10:57:19 +0000 |
commit | 20695052db6860620365af9b86ab301759d1405d (patch) | |
tree | b7e8afd7953b5c92cbcee71d5c1fcef2178d0a31 /app/models | |
parent | 52b232ca5d18ffc08299f5bb0ef3be46d2fecca3 (diff) | |
download | gitlab-ce-20695052db6860620365af9b86ab301759d1405d.tar.gz |
[Rails5] Update `type_cast_*_database` methods
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/merge_request_diff_commit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/merge_request_diff_commit.rb b/app/models/merge_request_diff_commit.rb index b75387e236e..1c2e57bb01f 100644 --- a/app/models/merge_request_diff_commit.rb +++ b/app/models/merge_request_diff_commit.rb @@ -17,7 +17,7 @@ class MergeRequestDiffCommit < ActiveRecord::Base commit_hash.merge( merge_request_diff_id: merge_request_diff_id, relative_order: index, - sha: sha_attribute.type_cast_for_database(sha), + sha: sha_attribute.serialize(sha), # rubocop:disable Cop/ActiveRecordSerialize authored_date: Gitlab::Database.sanitize_timestamp(commit_hash[:authored_date]), committed_date: Gitlab::Database.sanitize_timestamp(commit_hash[:committed_date]) ) |