creating migration table and models