aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-11-30 21:37:28 +0900
committerRyuta Kamizono <kamipo@gmail.com>2018-11-30 21:37:28 +0900
commitfaf91b0db432d6b9dc820c060ccce0b3d10d7daa (patch)
tree9fe741414780ef607e6837fe0a9b674aa15351b4 /activerecord
parentaa9b0932ecf2b35794de3836a1abb2cab39650de (diff)
downloadrails-faf91b0db432d6b9dc820c060ccce0b3d10d7daa.tar.gz
rails-faf91b0db432d6b9dc820c060ccce0b3d10d7daa.tar.bz2
rails-faf91b0db432d6b9dc820c060ccce0b3d10d7daa.zip
Use the full link URL instead of bit.ly [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/integration.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/integration.rb b/activerecord/lib/active_record/integration.rb
index ec39ece87f..90fb10a1f1 100644
--- a/activerecord/lib/active_record/integration.rb
+++ b/activerecord/lib/active_record/integration.rb
@@ -189,7 +189,8 @@ module ActiveRecord
# raw_timestamp_to_cache_version(timestamp)
# # => "20181015200215266505"
#
- # Postgres truncates trailing zeros, https://bit.ly/2QUlXiZ
+ # Postgres truncates trailing zeros,
+ # https://github.com/postgres/postgres/commit/3e1beda2cde3495f41290e1ece5d544525810214
# to account for this we pad the output with zeros
def raw_timestamp_to_cache_version(timestamp)
key = timestamp.delete("- :.")