<?xml version="1.0" encoding="UTF-8"?>
<ticket>
  <assigned-user-id type="integer" nil="true"></assigned-user-id>
  <attachments-count type="integer">1</attachments-count>
  <closed type="boolean">true</closed>
  <created-at type="datetime">2008-06-04T22:03:01+01:00</created-at>
  <creator-id type="integer">17057</creator-id>
  <milestone-due-on type="datetime" nil="true"></milestone-due-on>
  <milestone-id type="integer" nil="true"></milestone-id>
  <number type="integer">334</number>
  <permalink>don-t-add-default-null-to-column-definitions</permalink>
  <priority type="integer">15280</priority>
  <project-id type="integer">8994</project-id>
  <raw-data type="binary" nil="true" encoding="base64"></raw-data>
  <state>committed</state>
  <tag>activerecord migrations tested</tag>
  <title>Don't add DEFAULT NULL to column definitions</title>
  <updated-at type="datetime">2008-07-15T23:56:07+01:00</updated-at>
  <user-id type="integer">17393</user-id>
  <user-name>Repository</user-name>
  <creator-name>Nick Sieger</creator-name>
  <url>http://rails.lighthouseapp.com/projects/8994/tickets/334</url>
  <original-body>Commit 10ef65a3b054270ed3d458ec8eb7c2b9a3e638f7 introduced a strange side-effect to create table definitions. It causes DEFAULT NULL to be included all the time. Some databases are ok with this, but some are not. Example:

   `title` varchar(255) DEFAULT NULL NULL

Patch attached to omit passing :default option to #add_column_options! if it is nil.</original-body>
  <latest-body>Commit 10ef65a3b054270ed3d458ec8eb7c2b9a3e638f7 introduced a strange side-effect to create table definitions. It causes DEFAULT NULL to be included all the time. Some databases are ok with this, but some are not. Example:

   `title` varchar(255) DEFAULT NULL NULL

Patch attached to omit passing :default option to #add_column_options! if it is nil.</latest-body>
  <original-body-html>&lt;div&gt;&lt;p&gt;
Commit 10ef65a3b054270ed3d458ec8eb7c2b9a3e638f7 introduced a strange side-effect to create table definitions. It causes DEFAULT NULL to be included all the time. Some databases are ok with this, but some are not. Example:
&lt;/p&gt;&lt;p&gt;
`title` varchar(255) DEFAULT NULL NULL
&lt;/p&gt;&lt;p&gt;
Patch attached to omit passing :default option to #add_column_options! if it is nil.
&lt;/p&gt;&lt;/div&gt;</original-body-html>
  <versions type="array">
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Commit 10ef65a3b054270ed3d458ec8eb7c2b9a3e638f7 introduced a strange side-effect to create table definitions. It causes DEFAULT NULL to be included all the time. Some databases are ok with this, but some are not. Example:

   `title` varchar(255) DEFAULT NULL NULL

Patch attached to omit passing :default option to #add_column_options! if it is nil.</body>
      <body-html>&lt;div&gt;&lt;p&gt;
Commit 10ef65a3b054270ed3d458ec8eb7c2b9a3e638f7 introduced a strange side-effect to create table definitions. It causes DEFAULT NULL to be included all the time. Some databases are ok with this, but some are not. Example:
&lt;/p&gt;&lt;p&gt;
`title` varchar(255) DEFAULT NULL NULL
&lt;/p&gt;&lt;p&gt;
Patch attached to omit passing :default option to #add_column_options! if it is nil.
&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-06-05T02:27:45+01:00</created-at>
      <creator-id type="integer">17057</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">334</number>
      <permalink>don-t-add-default-null-to-column-definitions</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>Don't add DEFAULT NULL to column definitions</title>
      <updated-at type="datetime">2008-06-05T02:27:45+01:00</updated-at>
      <user-id type="integer">17057</user-id>
      <user-name>Nick Sieger</user-name>
      <creator-name>Nick Sieger</creator-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/334</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">1</attachments-count>
      <body>(from [30370227890dc950f1544b7b1040aa75e505f877]) Fixed that create database statements would always include &quot;DEFAULT NULL&quot; (Nick Sieger) [#334 status:committed]
http://github.com/rails/rails/commit/30370227890dc950f1544b7b1040aa75e505f877</body>
      <body-html>&lt;div&gt;&lt;p&gt;
(from [30370227890dc950f1544b7b1040aa75e505f877]) Fixed that create database statements would always include &quot;DEFAULT NULL&quot; (Nick Sieger) [#334 status:committed]
&lt;/p&gt;&lt;p&gt;
&lt;a href=&quot;http://github.com/rails/rails/commit/30370227890dc950f1544b7b1040aa75e505f877&quot;&gt;http://github.com/rails/rails/co...&lt;/a&gt;
&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-07-14T16:14:42+01:00</created-at>
      <creator-id type="integer">17057</creator-id>
      <diffable-attributes type="yaml">--- 
:tag: 
</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">334</number>
      <permalink>don-t-add-default-null-to-column-definitions</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>new</state>
      <tag>activerecord migrations tested</tag>
      <title>Don't add DEFAULT NULL to column definitions</title>
      <updated-at type="datetime">2008-07-14T16:14:42+01:00</updated-at>
      <user-id type="integer">17393</user-id>
      <user-name>Repository</user-name>
      <creator-name>Nick Sieger</creator-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/334</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">1</attachments-count>
      <body></body>
      <body-html></body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2008-07-14T16:36:16+01:00</created-at>
      <creator-id type="integer">17057</creator-id>
      <diffable-attributes type="yaml">--- 
:state: new
</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">334</number>
      <permalink>don-t-add-default-null-to-column-definitions</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>committed</state>
      <tag>activerecord migrations tested</tag>
      <title>Don't add DEFAULT NULL to column definitions</title>
      <updated-at type="datetime">2008-07-14T16:36:16+01:00</updated-at>
      <user-id type="integer">83</user-id>
      <user-name>DHH</user-name>
      <creator-name>Nick Sieger</creator-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/334</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">1</attachments-count>
      <body>(from [275c3ab2a7aac60ad30ab027d1f0b1f041fb016d]) Fixed that create database statements would always include &quot;DEFAULT NULL&quot; (Nick Sieger) [#334 status:committed]

Conflicts:

	activerecord/CHANGELOG
http://github.com/rails/rails/commit/275c3ab2a7aac60ad30ab027d1f0b1f041fb016d</body>
      <body-html>&lt;div&gt;&lt;p&gt;
(from [275c3ab2a7aac60ad30ab027d1f0b1f041fb016d]) Fixed that create database statements would always include &quot;DEFAULT NULL&quot; (Nick Sieger) [#334 status:committed]
&lt;/p&gt;&lt;p&gt;
Conflicts:
&lt;/p&gt;&lt;p&gt;
activerecord/CHANGELOG
&lt;/p&gt;&lt;p&gt;
&lt;a href=&quot;http://github.com/rails/rails/commit/275c3ab2a7aac60ad30ab027d1f0b1f041fb016d&quot;&gt;http://github.com/rails/rails/co...&lt;/a&gt;
&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2008-07-15T23:56:07+01:00</created-at>
      <creator-id type="integer">17057</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">334</number>
      <permalink>don-t-add-default-null-to-column-definitions</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>committed</state>
      <tag>activerecord migrations tested</tag>
      <title>Don't add DEFAULT NULL to column definitions</title>
      <updated-at type="datetime">2008-07-15T23:56:07+01:00</updated-at>
      <user-id type="integer">17393</user-id>
      <user-name>Repository</user-name>
      <creator-name>Nick Sieger</creator-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/334</url>
    </version>
  </versions>
  <attachments type="array">
    <attachment type="Attachment">
      <code>a1c42433edfd99c90c34a986c3ee1739fa7cb324</code>
      <content-type>text/plain</content-type>
      <created-at type="datetime">2008-06-04T22:03:01+01:00</created-at>
      <filename>0001-Avoid-creating-column-definition-SQL-like-title-va.patch</filename>
      <height type="integer" nil="true"></height>
      <id type="integer">25947</id>
      <size type="integer">3404</size>
      <uploader-id type="integer">17057</uploader-id>
      <width type="integer" nil="true"></width>
      <url>http://rails.lighthouseapp.com/attachments/25947/0001-Avoid-creating-column-definition-SQL-like-title-va.patch</url>
    </attachment>
  </attachments>
</ticket>
