Don't try to set datetime_type for nulldb

pull/11500/head
Oliver Günther 2 years ago
parent 4a9526552d
commit 7b20158449
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 2
      config/initializers/postgresql_timestamp.rb

@ -1,2 +1,4 @@
# Use timestampz to create new timestamp columns, so that we get WITH TIME ZONE support
if defined?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter)
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.datetime_type = :timestamptz
end

Loading…
Cancel
Save