Model validations and migrations handling