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.
Nothing prevent you to use it in ActiveRecord without ID :
The migration contains :
Queries :
The log report these SQL requests :
Hope that helps