method

add_index_options

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

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

add_index_options(table_name, column_name, name: nil, if_not_exists: false, internal: false, **options)
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/mysql/schema_statements.rb, line 86
        def add_index_options(table_name, column_name, name: nil, if_not_exists: false, internal: false, **options) # :nodoc:
          index, algorithm, if_not_exists = super
          index.enabled = options[:enabled] unless options[:enabled].nil?
          [index, algorithm, if_not_exists]
        end