Flowdock
method

attributes_with_index

Importance_0
v3.2.8 - Show latest stable - 0 notes - Class: ActiveRecord::Generators::ModelGenerator
attributes_with_index() public

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/model/model_generator.rb, line 29
      def attributes_with_index
        attributes.select { |a| a.has_index? || (a.reference? && options[:indexes]) }
      end
Register or log in to add new notes.