Rails ActiveRecord - is there a way to perform operations on tables without an id?

Posted by daustin777 on Stack Overflow See other posts from Stack Overflow or by daustin777
Published on 2009-05-05T15:40:16Z Indexed on 2010/03/17 3:21 UTC
Read the original article Hit count: 216

Filed under:
|
|
|

I have a table with one row and two columns-

int 'version', datetime 'updated'

Is there a Rails ActiveRecord way to get and set the data in these columns? There is no id column.

I'm using this table to track versions of queries of other tables. After each query of another table the version column is incremented and the updated column is set with current datetime.

© Stack Overflow or respective owner

Related posts about ruby

Related posts about ruby-on-rails