Skip to content
This repository was archived by the owner on Apr 17, 2018. It is now read-only.

Commit 70daf95

Browse files
committed
Change the wording to be more clear
1 parent 13ca54f commit 70daf95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/pitfalls.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ Implicit String property length
1717
When declaring a String property, DataMapper will add an implicit limit of 50
1818
characters if no limit is explicitly declared.
1919

20-
For example, the two class declarations have identical behaviour:
20+
For example, the following two models will have the same behaviour:
21+
2122
{% highlight ruby linenos %}
2223
# with an implicit length
2324
class Post
@@ -33,6 +34,7 @@ class Post
3334
property :title, String, :length => 50
3435
end
3536
{% endhighlight %}
37+
3638
The reason for this default is that DataMapper needs to know the underlying
3739
column constraints in order to add validations from the property definitions.
3840
Databases will often choose their own arbitrary length constraints if one is not

0 commit comments

Comments
 (0)