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.

Raise error if renaming nonexisting column in sqlite

#622

Currently sqlite seems to silently ignore rename_column called on a nonexisting column, this patch causes an ActiveRecordError to be raised in that case. This actually fixes a test for this behavior which is why the patch does not contain a test.

Reported by Tarmo Tänav · July 15th, 2008 @ 03:29 AM

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

Activity

  1. Repository
    Repository
    • State changed from new to resolved
    • Tag set to activerecord, patch

    (from [c1531ae00dbd3ac804bce02733e050ec43400607]) SQLite: rename_column raises if the column doesn't exist.

    [#622 state:resolved]

    http://github.com/rails/rails/co...

    July 15th, 2008 @ 07:39 AM

  2. Repository
    Repository

    (from [536400bfcf2eafc2f724b2a9dd899cd9bdb26f09]) SQLite: rename_column raises if the column doesn't exist.

    [#622 state:resolved]

    http://github.com/rails/rails/co...

    July 15th, 2008 @ 11:57 PM