<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -86,6 +86,7 @@ module DataMapper
         c_name = c_opts.is_a?(Hash) ? (c_opts.delete(:name) || :user_id) : commenter_fk(c_opts)
         c_type = c_opts.is_a?(Hash) ? (c_opts.delete(:type) || Integer)  : Integer
         c_property_opts = c_opts.is_a?(Hash) ? c_opts : { :nullable =&gt; false }
+        c_property_opts.merge!(:min =&gt; 0) if c_type == Integer # Match referenced column type
         c_association = c_name.to_s.gsub(/_id/, '').to_sym
 
         b_opts = options[:body]</diff>
      <filename>lib/dm-is-commentable/is/commentable.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c57d7497f3248b6d3bc08333a139a7b4b41e356c</id>
    </parent>
  </parents>
  <author>
    <name>snusnu</name>
    <email>gamsnjaga@gmail.com</email>
  </author>
  <url>http://github.com/snusnu/dm-is-commentable/commit/4566b8fac4fc0aea19d8cc98eef56cdf9ebe0703</url>
  <id>4566b8fac4fc0aea19d8cc98eef56cdf9ebe0703</id>
  <committed-date>2009-10-28T20:48:38-07:00</committed-date>
  <authored-date>2009-10-28T20:48:38-07:00</authored-date>
  <message>FK properties match the referenced column type</message>
  <tree>dcbc32f67fd4257c1a3e304b495d63987b8eeca2</tree>
  <committer>
    <name>snusnu</name>
    <email>gamsnjaga@gmail.com</email>
  </committer>
</commit>
