title: How to check if there is an index on a column through Rails console?
body: <p>Let's say I do <code>Image.column_names</code> and that shows all the columns such as <code>post_id</code> but how do I check if <code>post_id</code> has an index on it?</p>