adding the restrictions based fields and a migration