gitlabhq/gitlabhq — Issue #503: 'key' column name is a SQL keyword
Author: davekaro
Created: 2012-03-02 19:43:55+00:00
State: open

I ran into problems running GitLab using MySQL. I determined it was because the keys table has a key column.

When checking for a unique_key in key.rb - this query is ran
```Key.where('key = ?', key)```

I had to add \`s around key to make it work.
```Key.where('`key` = ?', key)```

I don't think the column should be named key to begin with. Maybe change it to ssh_key?