aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-02-20 14:47:27 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-02-20 14:47:27 -0200
commitbb9d20cf3434e20ac6f275e3ad29be42ebec207f (patch)
treef1ca7e3bf8dcc817a0ea9cda31e11f3e6a402953 /activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
parentf3186093d816675344c4f93c82c96fe8e94caafa (diff)
parentcddc298deaf58a51dfa1938fba7b64052594bbe7 (diff)
downloadrails-bb9d20cf3434e20ac6f275e3ad29be42ebec207f.tar.gz
rails-bb9d20cf3434e20ac6f275e3ad29be42ebec207f.tar.bz2
rails-bb9d20cf3434e20ac6f275e3ad29be42ebec207f.zip
Merge pull request #18914 from kamipo/format_time_according_to_precision
Format the time string according to the precision of the time column
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
index b4fe7506f8..6d25b53b21 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -180,6 +180,10 @@ module ActiveRecord
true
end
+ def supports_datetime_with_precision?
+ true
+ end
+
def index_algorithms
{ concurrently: 'CONCURRENTLY' }
end