method
schema_collation
rails latest stable - Class:
ActiveRecord::ConnectionAdapters::MySQL::SchemaDumper
schema_collation(column)private
No documentation available.
# File activerecord/lib/active_record/connection_adapters/mysql/schema_dumper.rb, line 65
def schema_collation(column)
if column.collation
@table_collation_cache ||= {}
@table_collation_cache[table_name] ||=
@connection.internal_exec_query("SHOW TABLE STATUS LIKE #{@connection.quote(table_name)}", "SCHEMA").first["Collation"]
column.collation.inspect if column.collation != @table_collation_cache[table_name]
end
end