Module: ActiverecordGlobalize::HstoreChecker

Defined in:
lib/activerecord_globalize/hstore_checker.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.native_hstore?Boolean

Check if database is supporting hstore data type by default

Returns:

  • (Boolean)


5
6
7
# File 'lib/activerecord_globalize/hstore_checker.rb', line 5

def self.native_hstore?
  @native_hstore ||= ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::NATIVE_DATABASE_TYPES.key?(:hstore)
end