check database data in tables in ruby code example Example: how to get all tables in rails c\ ActiveRecord::Base.connection.tables