column named "key"

There didn't seem to be a question here but assume you want to know
how to select a column with a reserved word.

This issue has some examples
https://github.com/rails/rails/issues/2601 Looks like using a symbol
or double quoting it should work.