Do not try to write timestamps if they are missing #8813
Merge pull request #8813 from greyblake/dont_write_timestamps_if_they_are_not_attributes

Write timestamps only if there are timestamps columns

Conflicts:
	activerecord/CHANGELOG.md
Ignore SCHEMA queries in some habtm tests