Flowdock
method

index_options

Importance_0
v7.1.3.2 - Show latest stable - 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 263
        def index_options(table_name)
          index_options = as_options(index).merge(conditional_options)

          # 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.