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.

Migration doesn't update scaffold-generated fixture

#2344

The title says it all...

To reproduce it: - create a new table using the scaffold generator - write a migration that removes one of the table columns - apply that migration - the fixture test for that column isn't updated.

Reported by François ANTIER · March 26th, 2009 @ 07:33 AM

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

Activity

  1. François ANTIER
    François ANTIER
    • Title changed from "remove_column" in migration does not remove entry in scaffold-generated fixture to Migration doesn't update scaffold-generated fixture

    Applying a migration wih 'add_column' or 'remove_column' does not add or remove the field entry in the corresponding, scaffold-generated fixture.

    I'm not sure whether scaffold-generated files are normally kept in sync later... I've run into a few other similar issues before. What do you think ?

    March 26th, 2009 @ 07:57 AM

  2. CancelProfileIsBroken
    CancelProfileIsBroken
    • State changed from new to invalid

    By design. Fixtures don't get resynched after creation. Feel free to patch.

    March 26th, 2009 @ 10:55 AM