Added migrations to put constraints on tables