Show a tables indexes within a Rails console ActiveRecord::Base.connection.select_all('SHOW INDEX FROM transactions').map { |t| t['Key_name'] } Pushed on 06/07/2013 by Christian