apply migration