<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,7 @@
 *SVN*
 
+* Fixed that change_column should be able to use :null =&gt; true on a field that formerly had false [Nate Wiger] [#26]
+
 * Added that the MySQL adapter should map integer to either smallint, int, or bigint depending on the :limit just like PostgreSQL [DHH]
 
 * Change validates_uniqueness_of :case_sensitive option default back to true (from [9160]).  Love your database columns, don't LOWER them.  [rick]</diff>
      <filename>activerecord/CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -297,7 +297,14 @@ module ActiveRecord
 
       def add_column_options!(sql, options) #:nodoc:
         sql &lt;&lt; &quot; DEFAULT #{quote(options[:default], options[:column])}&quot; if options_include_default?(options)
-        sql &lt;&lt; &quot; NOT NULL&quot; if options[:null] == false
+        # must explcitly check for :null to allow change_column to work on migrations
+        if options.has_key? :null
+          if options[:null] == false
+            sql &lt;&lt; &quot; NOT NULL&quot;
+          else
+            sql &lt;&lt; &quot; NULL&quot;
+          end
+        end
       end
 
       # SELECT DISTINCT clause for a given set of columns and a given ORDER BY clause.</diff>
      <filename>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5514baf63d6d5e19a84c59a0c2cf74f442daed9c</id>
    </parent>
  </parents>
  <author>
    <name>David Heinemeier Hansson</name>
    <login></login>
    <email>david@envy8-2.local</email>
  </author>
  <url>http://github.com/rails/rails/commit/10ef65a3b054270ed3d458ec8eb7c2b9a3e638f7</url>
  <id>10ef65a3b054270ed3d458ec8eb7c2b9a3e638f7</id>
  <committed-date>2008-04-29T14:52:52-07:00</committed-date>
  <authored-date>2008-04-29T14:52:52-07:00</authored-date>
  <message>Fixed that change_column should be able to use :null =&gt; true on a field that formerly had false [Nate Wiger] [#26 state:resolved]</message>
  <tree>8e7f42e2f296280a039e5c0017a81771144d3169</tree>
  <committer>
    <name>David Heinemeier Hansson</name>
    <login></login>
    <email>david@envy8-2.local</email>
  </committer>
</commit>
