method

add_index_length

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: SchemaStatements
add_index_length(quoted_columns, **options) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/mysql/schema_statements.rb, line 217
          def add_index_length(quoted_columns, **options)
            lengths = options_for_index_columns(options[:length])
            quoted_columns.each do |name, column|
              column << "(#{lengths[name]})" if lengths[name].present?
            end
          end
Register or log in to add new notes.