instance method attributes_with_index

Ruby on Rails 3.2.22.5

Since v3.2.22.5 Last seen in v3.2.22.5

Signature

attributes_with_index()

No documentation comment.

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

Defined in activerecord/lib/rails/generators/active_record/model/model_generator.rb line 29 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Generators::ModelGenerator

Type at least 2 characters to search.

↑↓ navigate · open · esc close