asset guide, match application.rb snippets to the generated file [ci skip]

`if defined?(Bundler)` is no longer used in our current application.rb
cleanup, switch arguments in assert_equal calls
cleanup, assert on warning from postgres adapter
Fixes bug 10628.
Fix the `:primary_key` option for `has_many` associations.

When removing records from a `has_many` association it used
the `primary_key` defined on the association.

Our test suite didn't fail because on all occurences of `:primary_key`,
the specified column was available in both tables. This prevented the
code from raising an exception but it still behaved badly.

I added a test-case to prevent regressions that failed with:

```
  1) Error:
HasManyAssociationsTest#test_has_many_assignment_with_custom_primary_key:
ActiveRecord::StatementInvalid: SQLite3::SQLException: no such column: essays.first_name: UPDATE "essays" SET "writer_id" = NULL WHERE "essays"."writer_id" = ? AND "essays"."first_name" IS NULL
```
Merge pull request #10713 from senny/10693_fix_primary_key_option_on_has_many

Fix the `:primary_key` option for `has_many` associations.
Merge pull request #10222 from senny/update_bundler_section_in_assets_guide

docs, adjust the application.rb snippets to match the generated file.

Closes #10449
Add note about upgrading custom routes from `put` to `patch`.
Add note about decorator loading in Engines guide.

Because decorators aren't referenced by the application, they won't get
autoloaded. And because we recommend the pattern, it would be irresponsible
to not show how to load them properly.

Fixes #10647.
add notice to server boot messages if using default 0.0.0.0 binding
Fix some typo in method names, variables
compatability => compatibility
Merge pull request #10761 from vipulnsward/fix-typo-1

Fix some typo in method names, variables
Merge pull request #10762 from vipulnsward/change_compatibility

compatability => compatibility
add test-case for `Array#to_sentence with blank items.
Merge pull request #10763 from senny/10758_to_sentence_with_blank_elements

test-case for `Array#to_sentence` with `blank?` items.
Minor refactor of ActiveRecord::SchemaMigration to remove references to Base, override table_exists method, and switch to preferred style for class method definitions.
cleanup whitespace in `active_record/relation.rb`.
`implicit_readonly` is being removed in favor of calling `readonly` explicitly
Merge pull request #10769 from senny/10615_join_should_not_return_readonly_records

using `#joins` does not imply `readonly = true`.