extract arrays to constants in Mapper
Merge pull request #10301 from vipulnsward/extract_in_mapper

extract arrays to constants in Mapper
applies documentation guidelines
ActiveRecord -> Active Record
Adjust for daylight savings in String#to_time

The changes in b79adc4323 had a bug where if the time in the String
was in standard time but the current time was in daylight savings then
the calculated adjustment was off by an hour.

This commit fixes this and adds extra tests for the following:

* time in string is standard time, current time is standard time
* time in string is standard time, current time is daylight savings
* time in string is daylight savings, current time is standard time
* time in string is daylight savings, current time is daylight savings

Fixes #10306.
When empty options passed to having clause having_values was [nil] but should be empty.
refactor initialization of array
Merge pull request #10318 from vipulnsward/refactor_obvious

refactor initialization of array
Merge pull request #10317 from arabonradar/ar_having_values_bug_fix

ActiveRecord having clause bug fix
Revert "`belongs_to :touch` behavior now touches old association when transitioning to new association" until a proper fix is found for #10197
Remove test case also related to the belongs_to touch feature
Moved the check for the rails test environment into rails/test_unit so that you
can select frameworks separately when running rake test.
Add test for `format: false` with resources - closes #10323
fixed missing comma in example
Merge pull request #10324 from prijutme4ty/guides_fix

fixed missing comma in example
Don't require having Rails.application to run database tasks
Revert "Revert "`belongs_to :touch` behavior now touches old association when transitioning to new association" until a proper fix is found for #10197"

This reverts commit 7389df139a35436f00876c96d20e81ba23c93f0a.

Conflicts:
	activerecord/test/cases/timestamp_test.rb
added test cases for #10197
Reset the primary key for other tests
Removed unused associations