I have a model License
that needs to have a version number (an Integer
) but I don't want that to be confused at all with the actual id
.
I have a field version_number
. What is the simplest way to tell ActiveRecord to automatically increment it on creation?