By SQL level validations, I meant the validations that we put in migrations like this:
add_column :leads, :count, null: false
By model-level validations, I meant the validations we put in models like this:
validates_presence_of :count
How are these two different? How is having both helpful? Is it enough that I only put model-level validations?