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 APISignature
schema_collation(column)
No documentation comment.
Parameters
-
columnreq
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