Migrations and template