Added templates package and moved all migrations to contracts package