This project is archived and is in readonly mode.
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
Base.logger.info "Migrating to #{migration.name} (#{migration.version})"
Placing an if Base.logger at the end seems to be the simplest switch.
Comments and changes to this ticket
-
Prem Sichanugrist (sikachu) January 26th, 2010 @ 09:35 AM
- State changed from new to verified
- Assigned user changed from Repository to Prem Sichanugrist (sikachu)
+1 On this bug
This patch applies cleanly on
master
, but not on2-3-stable
. I've updated the patch for2-3-stable
Also, I've included the test case that raise this issue.
-
Prem Sichanugrist (sikachu) January 30th, 2010 @ 02:09 PM
- Assigned user changed from Prem Sichanugrist (sikachu) to José Valim
-
Repository February 2nd, 2010 @ 10:33 AM
(from [f4e5303bcf36f845ba0808250c44eae26860e366]) fixed migration logger bug [#3434 status:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/f4e5303bcf36f845ba0808250c44ea... -
José Valim February 2nd, 2010 @ 10:40 AM
- State changed from verified to resolved
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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Tags
Referenced by
- 3434 Migrations fail if ActiveRecord::Base.logger is nil (from [f4e5303bcf36f845ba0808250c44eae26860e366]) fixed m...