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-b9f4589650daunstable
parent
912038dda3
commit
94ea648902
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue