method

index_name

Importance_0
index_name() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/generators/generated_attribute.rb, line 163
      def index_name
        @index_name ||= if polymorphic?
          %(id type).map { |t| "#{name}_#{t}" }
        else
          column_name
        end
      end
Register or log in to add new notes.