diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-03-19 19:55:57 -0700 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-03-19 19:55:57 -0700 |
commit | e61cdf02896ffe0a97cc2205a1a812d54638e19a (patch) | |
tree | 017b5a7b3358506ad7b07f534caf9c78a0c22403 /activerecord | |
parent | 148b2c5f6adfdd5bc043326c10909ccc49a7d152 (diff) | |
parent | 7952eafcfcbfa01a0332a1d196398f42eef5127f (diff) | |
download | rails-e61cdf02896ffe0a97cc2205a1a812d54638e19a.tar.gz rails-e61cdf02896ffe0a97cc2205a1a812d54638e19a.tar.bz2 rails-e61cdf02896ffe0a97cc2205a1a812d54638e19a.zip |
Merge pull request #9818 from wangjohn/sort_last_to_max_in_migration_version
Changed the call to .sort.last to .max when computing the migration version
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index 5d7762ec3a..27d37766b7 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -858,7 +858,7 @@ module ActiveRecord end def current_version - migrated.sort.last || 0 + migrated.max || 0 end def current_migration |