How to get an array with column names of a table How to get an array with column names of a table ruby-on-rails ruby-on-rails