Fixed a typo

The result from the migration prevented us from creating devices that
relate to another table.