title: How to get key name from a enum value in Rails?
body: <p>I have a enum in my Model that corresponds to column in the database.</p>
  
  <p>The enum looks like:</p>
  
  <pre><code>enum efficency: { High: 0, Medium: 1, Low: 2 }
  </code></pre>
  
  <p>How can I get the key from the value</p>
  
  <p>For example, i have the value 0, i need to fetch the value High.</p>
  
  <p>Any help would be appreciated.</p>