fix issue initial state doesn't work in active_record 4.2

This PR is for https://github.com/pluginaweek/state_machine/issues/334 .