Cleanup loaded features and constants after dependency tests.
Fix that a collection proxy could be cached before the save of the owner, resulting in an invalid proxy lacking the owner’s id.

Absent this fix calls like: owner.association.update_all to behave unexpectedly because they try to act on association objects where
owner_id is null.

more evidence here: https://gist.github.com/Empact/5865555
```
Active Record 3.2.13
-- create_table(:firms, {:force=>true})
   -> 0.1371s
-- create_table(:clients, {:force=>true})
   -> 0.0005s
1 clients. 1 expected.
1 clients updated. 1 expected.
```

```
Active Record 4.0.0
-- create_table(:firms, {:force=>true})
   -> 0.1606s
-- create_table(:clients, {:force=>true})
   -> 0.0004s
1 clients. 1 expected.
0 clients updated. 1 expected.
```
copy reflection_scopes’s unscoped value when building scope for preloading, fixes #11036
[ci skip] Add missing blank line to AR validation.
[ci skip] No need to indent here (AC overview).
[ci skip] Add highlight to code (form helper guide).
Make `String#remove` and `String#remove!` accept multiple arguments
Don't modify the columns hash to set defaults from the attributes API

Nothing is directly using the columns for the default values anymore.
This step helps us get closer not not mutating the columns hash.
Don't attempt to load the schema file in tests if none exists
added punctuations, and role of queue_adapter module [ci skip]
Remove redundant substitute index when constructing bind values

We end up re-ordering them either way when we construct the Arel AST (in order
to deal with rewhere, etc), so we shouldn't bother giving it a number in the
first place beforehand.
Added region sequencing of primary keys for Postgres.

Skip setting sequence on a table create if the value is 0 since it will start the first value at 1 anyway.
This fixes the PG error 'setval: value 0 is out of bounds for sequence vms_id_seq...' encountered when migrating a new DB.

BugzID: 15452,9772,13475,16850
fix set_pk_sequence and add a test for it.
remove unused and untested API
Fix break on generated html

fixes this :

![http://i.imgur.com/86scI3a.png](http://i.imgur.com/86scI3a.png))
Merge pull request #17470 from keikun17/master

[ci skip] Fix line break on asset pipeline guide
placed description at correct place [ci skip]
- Remove unused duplicated method `add_column_position` from AbstractMysqlAdapter
development.rb should mention available log levels
add missing space.[ci skip]