Fixes #717: Added ActiveRecord::hasAttribute()