rails console get table columns code example Example: rails get list of tables ActiveRecord::Base.connection.tables