rails/rails — pull request #3477 by rud (2011-10-31 06:45:53+00:00)
Title: dump_schema_information: explicitly order inserts into schema_migrations 

```dump_schema_information```: now explicitly orders inserts into schema_migrations table by version value

We use ```active_record.schema_format = :sql``` as our schema dump format, and the ```db/development_structure.sql``` sees quite a bit of trivial churn in the git history due to migrations having run in different orders, as migrations are created on different feature branches over time. With this trivial fix, only added/removed migrations will create changes to the schema dump file.

The complete activerecord test suite with all database drivers pass with this change. Unfortunately, that doesn't say a big deal, as ```dump_schema_information``` is only called by the ```db:structure:dump``` rake-task. Local manual testing does confirm the change, though.

Comments on this change?