ActiveRecord: set primary_key default as 'id' which table does not have primary_key.

ActiveRecord: set primary_key default as 'id' which table does not have primary_key.