adding thor migration task and change AR to 4.1