This project is archived and is in readonly mode.

#334 ✓committed
Nick Sieger

Don't add DEFAULT NULL to column definitions

Reported by Nick Sieger | June 5th, 2008 @ 02:27 AM

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.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Pages