diff options
author | José Valim <jose.valim@gmail.com> | 2011-10-31 03:01:02 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-10-31 03:01:02 -0700 |
commit | 2407a7ad8d54ddbcd856d02a11633a3273bac6dd (patch) | |
tree | ef5031cbbcfee085ddf737003bcc56ee066f1e67 /activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | |
parent | 818bf1da0e86cf50b5a33ec493959374ccc1cb7d (diff) | |
parent | ff9c2799c1a065fb132df64da6d19683c647b5b4 (diff) | |
download | rails-2407a7ad8d54ddbcd856d02a11633a3273bac6dd.tar.gz rails-2407a7ad8d54ddbcd856d02a11633a3273bac6dd.tar.bz2 rails-2407a7ad8d54ddbcd856d02a11633a3273bac6dd.zip |
Merge pull request #3477 from rud/stable-migrations-version-order-rebased
dump_schema_information: explicitly order inserts into schema_migrations
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index b4a9e29ef1..910ef3efce 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -405,7 +405,7 @@ module ActiveRecord def dump_schema_information #:nodoc: sm_table = ActiveRecord::Migrator.schema_migrations_table_name - migrated = select_values("SELECT version FROM #{sm_table}") + migrated = select_values("SELECT version FROM #{sm_table} ORDER BY version") migrated.map { |v| "INSERT INTO #{sm_table} (version) VALUES ('#{v}');" }.join("\n\n") end |