adds user foreign key to templates migration