rails/rails — pull request #12845 by amatsuda (2013-11-11 10:04:24+00:00)
Title: Refer to Rails.env from AR only when Rails is defined

AR migration.rb depends on `Rails` constant here in an error message, but AR doesn't actually always depend on Rails, so this code could sometimes cause another weird error: "NameError: uninitialized constant Rails"

I'm not sure if this really is a problem, and what is a desirable way to address the problem if it actually is a problem, so let me ask the core team as a PR.