method
schema_collation
v5.0.0.1 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::MySQL::ColumnDumper
schema_collation(column)private
No documentation available.
# 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