Skip to content
Browse files

Fixed that using version-targetted migrates would fail on loggers oth…

…er than the default one (closes #7430) [valeksenko]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7577 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 4cf23c9 commit 766fbce04e9d24de36c9cb9cfe719f3814cedc11 @dhh dhh committed Sep 22, 2007
Showing with 7 additions and 1 deletion.
  1. +2 −0 activerecord/CHANGELOG
  2. +5 −1 activerecord/lib/active_record/migration.rb
View
2 activerecord/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Fixed that using version-targetted migrates would fail on loggers other than the default one #7430 [valeksenko]
+
* Fixed rename_column for SQLite when using symbols for the column names #8616 [drodriguez]
* Added the possibility of using symbols in addition to concrete classes with ActiveRecord::Observer#observe #3998 [robbyrussell/tarmo]
View
6 activerecord/lib/active_record/migration.rb
@@ -330,7 +330,11 @@ def current_version
def migrate
migration_classes.each do |migration_class|
- Base.logger.info("Reached target version: #{@target_version}") and break if reached_target_version?(migration_class.version)
+ if reached_target_version?(migration_class.version)
+ Base.logger.info("Reached target version: #{@target_version}")
+ break
+ end
+
next if irrelevant_migration?(migration_class.version)
Base.logger.info "Migrating to #{migration_class} (#{migration_class.version})"

0 comments on commit 766fbce

Please sign in to comment.
Something went wrong with that request. Please try again.