static public Method

Base.column_names

Returns an array of column names as strings.

Source Code

# File active_record/base.rb, line 1092
def column_names
  @column_names ||= columns.map { |column| column.name }
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.