Rails: How to list database tables/objects using the Rails console?
You are probably seeking: ActiveRecord::Base.connection.tables and ActiveRecord::Base.connection.columns(‘projects’).map(&:name) You should probably wrap them in shorter syntax inside your .irbrc.