You have `null: false` on these IDs - you also need presence validations.