instance method schema_collation

Ruby on Rails 5.0.7.2

Since v5.0.7.2 Last seen in v5.0.7.2 Private — implementation detail, not part of the public API

Signature

schema_collation(column)

No documentation comment.

Parameters

column req
Source
# File activerecord/lib/active_record/connection_adapters/mysql/schema_dumper.rb, line 44
        def schema_collation(column)
          if column.collation && table_name = column.table_name
            @table_collation_cache ||= {}
            @table_collation_cache[table_name] ||= select_one("SHOW TABLE STATUS LIKE '#{table_name}'")["Collation"]
            column.collation.inspect if column.collation != @table_collation_cache[table_name]
          end
        end

Defined in activerecord/lib/active_record/connection_adapters/mysql/schema_dumper.rb line 44 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::MySQL::ColumnDumper

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close