Patch rails so that migrations can be run even when Base.logger == nil

git-svn-id: file:///home/svn/framework3/trunk@8017 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Mike Smith 2009-12-29 01:04:48 +00:00
parent 912038dda3
commit 94ea648902
1 changed files with 1 additions and 1 deletions

View File

@ -470,7 +470,7 @@ module ActiveRecord
runnable.pop if down? && !target.nil?
runnable.each do |migration|
Base.logger.info "Migrating to #{migration.name} (#{migration.version})"
Base.logger.info "Migrating to #{migration.name} (#{migration.version})" if Base.logger
# On our way up, we skip migrating the ones we've already migrated
next if up? && migrated.include?(migration.version.to_i)