Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Allow timestamp columns to be NOT NULL

#917

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.

Reported by James Le Cuirot · August 27th, 2008 @ 04:17 PM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Tarmo Tänav
    Tarmo Tänav
    • State changed from new to resolved

    This should already be possible with http://github.com/rails/rails/co...

    August 28th, 2008 @ 02:33 PM

  2. James Le Cuirot
    James Le Cuirot

    That's exactly what I was going to do. I could have sworn that change wasn't there when I looked. Oh well. Thanks!

    August 28th, 2008 @ 02:47 PM