Browse files

Change the wording to be more clear

  • Loading branch information...
1 parent 13ca54f commit 70daf9501cf77e270c26afad16d5be61b054f038 @dkubb dkubb committed Apr 2, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 docs/
@@ -17,7 +17,8 @@ Implicit String property length
When declaring a String property, DataMapper will add an implicit limit of 50
characters if no limit is explicitly declared.
-For example, the two class declarations have identical behaviour:
+For example, the following two models will have the same behaviour:
{% highlight ruby linenos %}
# with an implicit length
class Post
@@ -33,6 +34,7 @@ class Post
property :title, String, :length => 50
{% endhighlight %}
The reason for this default is that DataMapper needs to know the underlying
column constraints in order to add validations from the property definitions.
Databases will often choose their own arbitrary length constraints if one is not

0 comments on commit 70daf95

Please sign in to comment.