add prompt to 404 & 500 pages to check logs

When new programmers push their code to a production server and receive an error they often don't know to check the logs, this simple reminder will help. Most professional applications have custom error pages so this change shouldn't affect them. The wording of the message should not confuse non-developer visitors.
Fix fragile #assert_queries implementation and usages.

Several tests that passed when run in the order they are loaded
by rake test were failing when run in different sequences due to
problems with the implementation of assert_queries and
assert_no_queries as well as incorrect assumptions made about
how many queries might be executed by a database adapter in
various cases.
removes the obsolete require_association method from dependencies

This is an obsolete method from the very early days,
apparently it was used circa 2004 because STI support
was not smart enough. This method is not public
interface, and we are heading a major version, so
removal seems right.
Merge pull request #6683 from stevecj/fix-fragile-assert-queries

Fix fragile #assert_queries implementation and usages.
Merge pull request #6665 from schneems/schneems/raise-migration-error

Notify A User they Have Pending Migrations 
Use . instead of :: for class methods, add CHANGELOG entries
Merge pull request #6692 from schneems/schneems/something-went-wrong

Add Prompt to 404 & 500 Pages to Check Logs in Production
Build fix broken here 03f2249153ae4d2078646e6796d8b9e5ef747fba
Merge pull request #6694 from arunagw/build_fix_master

Build fix broken here 03f2249153ae4d2078646e6796d8b9e5ef747fba
Fix #6635. We should call Scoping methods, before calling Array methods.
Ensure that mass assignment options are preserved

There are two possible scenarios where the @mass_assignment_options
instance variable can become corrupted:

1. If the assign_attributes doesn't complete correctly, then
   subsequent calls to a nested attribute assignment method will use
   whatever options were passed to the previous assign_attributes call.

2. With nested assign_attributes calls, the inner call will overwrite
   the current options. This will only affect nested attributes as the
   attribute hash is sanitized before any methods are called.

To fix this we save the current options in a local variable and then
restore these options in an ensure block.
Merge pull request #6695 from kennyj/fix_6635

Fix #6635. We should call Scoping methods, before calling Array methods.
Fix typo 'ActiveSpport'.
Minimal change to query generation of exists? that makes SQLServer and others happy that do not work without a column alias.
Conflicts:
	activerecord/lib/active_record/relation/finder_methods.rb
Add test to column alias in `exists?` SQL.

This behavior was added in be4ecdcc87984e9421ff5d5c90d33f475e0fbc01.

Closes #1139.

Fixes #2553, #1141, #1623 and #2062.
Remove bundle exec from the exception message
Fix that #exists? raises ThrowResult when called with an empty limited
reflection.

ActiveRecord::FinderMethods#construct_limited_ids_condition will raise
ThrowResult if the limited reflection comes back empty. The other callers
of #construct_limited_ids_condition handle this exception (more specifically,
the callers of construct_relation_for*), but #exists? didn't until now.
Change initialization guide introduction

We will no longer cover every single file that is loaded by Rails, as
this would be too difficult and time consuming to maintain.

We also expect the reader to know about rails server at this point.
Merge pull request #6521 from Empact/throw-result

Fix that #exists? can blow up with ThrowResult exception
Refactor Action Dispatch description to be more concise