Fixed a problem where rails was setting the ID column to null, which violates the...