added a migration that adds db constraints.