What are the differences between these migrations to make database column non-nullable (Ruby on Rails)?
I have been working with rails recently (pretty new to the whole thing) and I had a question about a concept I was learning about. So I learned about validations that occur at the model-level, but I’m now trying to learn more about database validations. I was wondering if you guys could help answer my questions and check my understanding, as the docs/posts I’ve found on the topic don’t really provide a ground-up explanation.
Uniqueness validation with 2 scopes not acting as expected
I have a model with a uniqueness validation that keeps failing despite my scopes.
Uniqueness validation with 2 scopes not acting as expected
I have a model with a uniqueness validation that keeps failing despite my scopes.