This project is archived and is in readonly mode.
Add magic encoding comment to generated files
Reported by Brian Candler | September 13th, 2010 @ 04:25 PM
If db/schema.rb doesn't exist then the error message suggests editing config/boot.rb, whereas I believe it should be config/application.rb
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake
index 8e53322..cbfe20c 100644
--- a/activerecord/lib/active_record/railties/databases.rake
+++ b/activerecord/lib/active_record/railties/databases.rake
@@ -357,7 +357,7 @@ namespace :db do
if File.exists?(file)
load(file)
else
- abort %{#{file} doesn't exist yet. Run "rake db:migrate" to create it then try again. If you do not intend to use a database, you should instead alter #{Rails.root}/config/boot.rb to limit the frameworks that will be loaded}
+ abort %{#{file} doesn't exist yet. Run "rake db:migrate" to create it then try again. If you do not intend to use a database, you should instead alter #{Rails.root}/config/application.rb to limit the frameworks that will be loaded}
end
end
end
Aside: It's also not at all obvious what change you should make in this file. You really have to generate a fresh skeleton with --skip-active-record to see what's required.
BEFORE:
require 'rails/all'
AFTER:
# Pick the frameworks you want:
# require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
require "active_resource/railtie"
require "rails/test_unit/railtie"
Comments and changes to this ticket
-
Santiago Pastorino September 19th, 2010 @ 10:15 PM
- Importance changed from to Low
Hey Brian, can you make your patch following http://rails.lighthouseapp.com/projects/8994/sending-patches please. Thanks for helping :).
-
Brian Candler September 20th, 2010 @ 09:08 AM
The reformatted patch, which requires exactly one word to be changed, is attached.
-
Santiago Pastorino September 24th, 2010 @ 09:42 PM
Brian i know that is easy to change one line and patch it, i asked you to do it to assign you as the author.
-
Repository September 24th, 2010 @ 09:42 PM
- State changed from new to resolved
(from [a348ffcb2dd3819c76756d0ce0e88bc858e89ca5]) Fix warning message when db/schema.rb doesn't exist [#5625 state:resolved]
Signed-off-by: Santiago Pastorino santiago@wyeworks.com
http://github.com/rails/rails/commit/a348ffcb2dd3819c76756d0ce0e88b... -
Repository September 24th, 2010 @ 09:43 PM
(from [4d023a6970d803f12ad3aaa39ac606ea4124abbf]) Fix warning message when db/schema.rb doesn't exist [#5625 state:resolved]
Signed-off-by: Santiago Pastorino santiago@wyeworks.com
http://github.com/rails/rails/commit/4d023a6970d803f12ad3aaa39ac606... -
alunduo January 12th, 2011 @ 01:51 PM
If you want to get the hotted NBA Jersey as soon aspossible! we have lots of fashion and cycling Jersey,and you call me.our factory product waht you want that now!we wholesale NHL Jersey more for the last month!NHL Player Jersey was engineered and constructed to show the individual team and skill position utilizing similar fabrics and applications from the Pro Cut version.Most rain gauge monitoring systems are now using one-way UHF radio to transmit the data.wireless broadband modem For exampleIP radio
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
Referenced by
- 5625 Misleading comment if db/schema.rb doesn't exist (from [a348ffcb2dd3819c76756d0ce0e88bc858e89ca5]) Fix war...
- 5625 Misleading comment if db/schema.rb doesn't exist (from [4d023a6970d803f12ad3aaa39ac606ea4124abbf]) Fix war...