fix issue initial state doesn't work in active_record 4.2