method

schema_collation

rails latest stable - Class: ActiveRecord::ConnectionAdapters::MySQL::ColumnDumper

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.1.7) is shown here.

schema_collation(column)
private

No documentation available.

# File activerecord/lib/active_record/connection_adapters/mysql/schema_dumper.rb, line 54
          def schema_collation(column)
            if column.collation && table_name = column.table_name
              @table_collation_cache ||= {}
              @table_collation_cache[table_name] ||= exec_query("SHOW TABLE STATUS LIKE #{quote(table_name)}", "SCHEMA").first["Collation"]
              column.collation.inspect if column.collation != @table_collation_cache[table_name]
            end
          end