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.

[PATCH] Order add_index statements in schema.rb

#1266

When using sqlite3, rake db:schema:dump is not guaranteed to output the same file every time. Notably, the order in which the "add_index" statements appear under each table changes.

That gets very annoying when using version control. This patch makes sure they get sorted before being dumped.

Reported by Jordi Bunster · October 24th, 2008 @ 06:24 PM

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

Activity

  1. Repository
    Repository
    • State changed from new to committed

    (from [a9e816843289d8839d4206c5ad09e49452d076ac]) Ensure indices don't flip order in schema.rb [#1266 [PATCH] Order add_index statements in schema.rb state:committed]

    Signed-off-by: David Heinemeier Hansson david@loudthinking.com http://github.com/rails/rails/co...

    October 30th, 2008 @ 12:03 PM

  2. Jordi Bunster
    Jordi Bunster

    Thank you sir. While we're messing with schema.rb, what do you think of this: http://rails.lighthouseapp.com/p... ?

    October 30th, 2008 @ 08:10 PM