before migrate like model