method
to_s
v8.1.1 -
Show latest stable
- Class:
Rails::Generators::GeneratedAttribute
to_s()public
No documentation available.
# File railties/lib/rails/generators/generated_attribute.rb, line 248
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