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.

Michael Granger's latest activity

Sunday, April 24 2011
6648 PostgreSQL add column behaves differently to other adaptors (SQlite, MySQL) w... was updated in Ruby on Rails
  • Michael Granger
    Michael Granger commented at 4:09 AM

    I'm sorry, I must have read the diff backwards for some reason. Your patch modifies it to do exactly what I'd expect.

Tuesday, April 19 2011
6648 PostgreSQL add column behaves differently to other adaptors (SQlite, MySQL) w... was updated in Ruby on Rails
  • Michael Granger
    Michael Granger commented at 3:28 PM

    I'm not sure why your migrations aren't doing this, but PostgreSQL does set the default values on new columns in an ALTER TABLE:

        $ psql test
        psql (9.0....