Created state for a transaction and added tests.
Removed reflects_transaction_state.
Added a changelog entry.
Merge pull request #9006 from wangjohn/activerecord_transaction_state

Created state for a transaction and added tests.