method

to_s

rails latest stable - Class: Rails::Generators::GeneratedAttribute

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

to_s()
public

No documentation available.

# File railties/lib/rails/generators/generated_attribute.rb, line 243
      def to_s
        if has_uniq_index?
          "#{name}:#{type}#{print_attribute_options}:uniq"
        elsif has_index?
          "#{name}:#{type}#{print_attribute_options}:index"
        else
          "#{name}:#{type}#{print_attribute_options}"
        end
      end