instance method collation

Ruby on Rails 4.0.13

Since v4.0.13 Last seen in v4.1.16

Available in: v4.0.13 v4.1.16

Signature

collation()

Returns the current database collation.

Source
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 216
        def collation
          query(<<-end_sql, 'SCHEMA')[0][0]
            SELECT pg_database.datcollate FROM pg_database WHERE pg_database.datname LIKE '#{current_database}'
          end_sql
        end

Defined in activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb line 216 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::SchemaStatements

Type at least 2 characters to search.

↑↓ navigate · open · esc close