move migration to rake task