sorting migrations so they run in order on ubuntu