method

set_index_names

set_index_names()
protected

No documentation available.

# File activerecord/lib/rails/generators/active_record/migration/migration_generator.rb, line 40
      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