Our existing database uses id as primary key. Our current application,
database itself, determines the next unique id for a new entry.
How does Active Record create the unique integer? I.e, are we going to
into problems with starting points and existing ids?
If you set up the database according to the standard, the id column will
be ‘primary-key’ and ‘auto-incremement’. Thus, the database does the
incrementing, not ActiveRecord. My guess would be that if you supply
the ID number and turn off the auto-increment, that it will work fine.
Sigh. It is an existing database (not setup just for Ruby or Rails) with
70,000 records. No auto-increment running on the database because that
been handled by our current main application. If I do anything with
such that Rails implementation of Active Record relies on the database
autoincrement, it is not going to happen because the database does not
that function in this application.
If the Active Record implementation on Rails can calculate the next id,
it won’t create interference. I just don’t understand how Rails
the next unique id if that is not handled by the database.