Merge a582f801e1159a1a495fc838e06e0a2494e11ea4 into aa45da15421ddb1549a7060e5c189f8350a29166

This commit is contained in:
Yongzheng Lai 2016-02-16 06:09:50 +00:00
commit aff2323f09

View File

@ -369,7 +369,7 @@ func (s *DB) NewRecord(value interface{}) bool {
}
func (s *DB) RecordNotFound() bool {
return s.Error == RecordNotFound
return s.Error == RecordNotFound || s.Error != nil
}
// Migrations