Flowdock
method

set_index_names

Importance_0
v4.0.2 - Show latest stable - 0 notes - Class: ActiveRecord::Generators::MigrationGenerator
set_index_names() protected

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