aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorFumiaki MATSUSHIMA <mtsmfm@gmail.com>2017-03-23 20:27:02 +0900
committerFumiaki MATSUSHIMA <mtsmfm@gmail.com>2017-03-23 20:29:30 +0900
commit69717023268ad2f48f823730d2d5db0b552302b0 (patch)
tree5265f55a9ae16c6e6ad635d4d10dc5f4897f5246 /activerecord
parenteb85100426dd49c355bb712759859537c6de9ead (diff)
downloadrails-69717023268ad2f48f823730d2d5db0b552302b0.tar.gz
rails-69717023268ad2f48f823730d2d5db0b552302b0.tar.bz2
rails-69717023268ad2f48f823730d2d5db0b552302b0.zip
Move comment to inside the method [ci skip]
Because this comment is not document for `supports_ranges?` ref: https://github.com/rails/rails/pull/27636#discussion_r107560081
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
index f9023c0e0f..73cf3ac862 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -301,8 +301,8 @@ module ActiveRecord
true
end
- # Range datatypes weren't introduced until PostgreSQL 9.2
def supports_ranges?
+ # Range datatypes weren't introduced until PostgreSQL 9.2
postgresql_version >= 90200
end