make sure sequence gets set on the model and write spec for setting ids