method

index_options

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ReferenceDefinition
index_options(table_name) 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/abstract/schema_definitions.rb, line 199
        def index_options(table_name)
          index_options = as_options(index)

          # legacy reference index names are used on versions 6.0 and earlier
          return index_options if options[:_uses_legacy_reference_index_name]

          index_options[:name] ||= polymorphic_index_name(table_name) if polymorphic
          index_options
        end
Register or log in to add new notes.