I played with the Rails administrator and I noticed something.
Attributes that are defined in the model below are considered “Required” in Rails admin
validates :user, presence: true
However, the attributes defined in the table below (schema / migration) are still considered “optional”
t.datetime "created_at",:null => false
I would suggest that they are both identical, with the possible exception of the level from which the validation error pops up. Am I mistaken or is this a Rails admin error? Both of them guarantee that this field will be required for successful storage in the field or is there a difference?
source share