Flowdock
method

set_index_names

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActiveRecord::Generators::MigrationGenerator
set_index_names() 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/rails/generators/active_record/migration/migration_generator.rb, line 45
        def set_index_names
          attributes.each_with_index do |attr, i|
            attr.index_name = [attr, attributes[i - 1]].map { |a| index_name_for(a) }
          end
        end
Register or log in to add new notes.