Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Add magic encoding comment to generated files

#5625

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"

Reported by Brian Candler · September 13th, 2010 @ 04:25 PM

State: resolved
Milestone: none
Assigned to: Jeremy Kemper Jeremy Kemper
Importance: Low

Activity

  1. Santiago Pastorino
    Santiago Pastorino
    • 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 :).

    September 19th, 2010 @ 10:15 PM

  2. Brian Candler
    Brian Candler

    The reformatted patch, which requires exactly one word to be changed, is attached.

    September 20th, 2010 @ 09:08 AM

  3. Anil Wadghule
  4. Santiago Pastorino
    Santiago Pastorino

    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.

    September 24th, 2010 @ 09:42 PM

  5. Repository
    Repository
    • State changed from new to resolved

    September 24th, 2010 @ 09:42 PM

  6. Repository
  7. Ryan Bigg
    Ryan Bigg
    • Tag cleared.

    Automatic cleanup of spam.

    October 9th, 2010 @ 10:12 PM

  8. Ryan Bigg
    Ryan Bigg

    Automatic cleanup of spam.

    October 21st, 2010 @ 03:40 AM

  9. Ryan Bigg
    Ryan Bigg

    Automatic cleanup of spam.

    October 21st, 2010 @ 03:40 AM

  10. Jeff Kreeftmeijer
  11. Jeff Kreeftmeijer
  12. alunduo
    alunduo

    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

    January 12th, 2011 @ 01:51 PM

  13. bingbing