ActiveRecord::NotNullViolation Ruby on Rails 5.1.2 Class ActiveRecord::NotNullViolation < ActiveRecord::StatementInvalid activerecord/lib/active_record/errors.rb Raised when a record cannot be inserted or updated because it would violate a not null constraint.