title: Rails 4.2.3 `method_missing': undefined method `active_record'
body: <p>I tried to create a new Rails app today, and the app is behaving as though ActiveRecord simply isn't there.</p>
  
  <p>I created the app with:</p>
  
  <pre><code>rails new myapp --database=mysql
  </code></pre>
  
  <p>When running rake db:create, I get:</p>
  
  <pre><code>rake aborted!
  NoMethodError: undefined method `active_record' for #&lt;Rails::Application::Configuration:0x007faad08b3058&gt;
  /Library/Ruby/Gems/2.0.0/gems/railties-4.2.3/lib/rails/railtie/configuration.rb:95:in `method_missing'
  /Users/richard/Dropbox/Development/myapp/config/application.rb:24:in `&lt;class:Application&gt;'
  /Users/richard/Dropbox/Development/myapp/config/application.rb:10:in `&lt;module:Myapp&gt;'
  /Users/richard/Dropbox/Development/myapp/config/application.rb:9:in `&lt;top (required)&gt;'
  /Users/richard/Dropbox/Development/myapp/Rakefile:4:in `&lt;top (required)&gt;'
  (See full trace by running task with --trace)
  </code></pre>
  
  <p>In fact, if I comment out the offending line and then run rake -T:</p>
  
  <pre><code>...
  rake cache_digests:dependencies         # Lookup first-level dependencies for TEMPLATE (like messages/show or comments/_c...
  rake cache_digests:nested_dependencies  # Lookup nested dependencies for TEMPLATE (like messages/show or comments/_commen...
  rake doc:app                            # Generate docs for the app -- also available doc:rails, doc:guides (options: TEM...
  rake log:clear                          # Truncates all *.log files in log/ to zero bytes (specify which logs with LOGS=t...
  rake middleware
  ...
  </code></pre>
  
  <p>There are no rake db:* tasks at all!</p>
  
  <p>I have a bunch of other Rails apps ranging from Rails 3.x up to Rails 4.2.0 and they all work fine. It's just this app, created today (and any new app) that is showing this behaviour.</p>
  
  <p>Running OSX 10.10, Ruby 2.0.0, completely stock Gemfile.</p>
  
  <p>application.rb:</p>
  
  <pre><code>require File.expand_path('../boot', __FILE__)
  
  require 'rails/all'
  
  # Require the gems listed in Gemfile, including any gems
  # you've limited to :test, :development, or :production.
  Bundler.require(*Rails.groups)
  
  module Myapp
    class Application &lt; Rails::Application
      # Settings in config/environments/* take precedence over those specified here.
      # Application configuration should go into files in config/initializers
      # -- all .rb files in that directory are automatically loaded.
  
      # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
      # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
      # config.time_zone = 'Central Time (US &amp; Canada)'
  
      # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
      # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
      # config.i18n.default_locale = :de
  
      # Do not swallow errors in after_commit/after_rollback callbacks.
      config.active_record.raise_in_transactional_callbacks = true
    end
  end
  </code></pre>