This project is archived and is in readonly mode.

#3434 ✓resolved

Migrations fail if ActiveRecord::Base.logger is nil

Reported by ProbablyCorey | October 27th, 2009 @ 11:21 PM

When running ActiveRecord without the entire Rails stack, ActiveRecord::Base.logger isn't automatically set. So when migrations are run this line fails "Migrating to #{} (#{migration.version})"

Placing an if Base.logger at the end seems to be the simplest switch.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>


Referenced by