This project is archived and is in readonly mode.
Allow timestamp columns to be NOT NULL
Reported by James Le Cuirot | August 27th, 2008 @ 04:17 PM | in 2.x
I gather that nullable columns have a minor performance impact in most databases. ActiveRecord currently hardcodes the timestamp columns to be nullable. Since these are (always?) filled in by ActiveRecord when they are present, shouldn't we at least give the option to make them NOT NULL? I'll write a patch if you agree.
Comments and changes to this ticket
-
Tarmo Tänav August 28th, 2008 @ 02:33 PM
- State changed from new to resolved
This should already be possible with http://github.com/rails/rails/co...
-
James Le Cuirot August 28th, 2008 @ 02:47 PM
That's exactly what I was going to do. I could have sworn that change wasn't there when I looked. Oh well. Thanks!
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>