lib/torque/postgresql/config.rb in torque-postgresql-2.1.3 vs lib/torque/postgresql/config.rb in torque-postgresql-2.2.0

- old
+ new

@@ -3,10 +3,11 @@ module Torque module PostgreSQL include ActiveSupport::Configurable # Stores a version check for compatibility purposes + AR604 = (ActiveRecord.gem_version >= Gem::Version.new('6.0.4')) AR610 = (ActiveRecord.gem_version >= Gem::Version.new('6.1.0')) # Use the same logger as the Active Record one def self.logger ActiveRecord::Base.logger @@ -22,9 +23,14 @@ # Set if any information that requires querying and searching or collectiong # information shuld be eager loaded. This automatically changes when rails # same configuration is set to true config.eager_load = false + + # This allows default values to have extended values like arrays and casted + # values. Extended defaults are still experimental, so enable and test it + # before using it in prod + config.use_extended_defaults = false # Set a list of irregular model name when associated with table names config.irregular_models = {} def config.irregular_models=(hash) PostgreSQL.config[:irregular_models] = hash.map do |(table, model)|