Validate the presence of default User and UserPreference attributes
We want to make the columns with defaults not null in our database. As the first step, we want to validate their presence in the models. `before_validation`s have also been added to allow existing records to update. Otherwise, new validation would have prevented them from getting updated.
加载中
想要评论请 注册 或 登录