method
to_s
v7.2.3 -
Show latest stable
- Class:
Rails::Generators::GeneratedAttribute
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