src code

instance method ActiveRecord.Model#keys

ActiveRecord.Model#keys() → Array

Returns an array of the column names that the instance contains.