method

set_index_names

rails latest stable - Class: ActiveRecord::Generators::MigrationGenerator
set_index_names()
private

No documentation available.

# 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