This project is archived and is in readonly mode.

#917 ✓resolved
James Le Cuirot

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

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>

People watching this ticket

Pages