I am current working on a project that I want to use Ruby Object Mapper with an existing sql database. I am running into a problem when I execute a create command, the returned result seems to sort by table_name.id
by default. This is a problem because the existing tables that I am working with has a primary key named other than id
, and it causes a unknown column 'id'
exception.
I just wonder if there is any possible way to change the default order column?