I have this primary key field which was set in my migration like this:
add(:rev_id, :bigserial, primary_key: true)
It’s auto incremented and I dont want it to be auto incremented so I wrote a migration and change it like this:
modify(:rev_id, :integer, primary_key: true)
I changed it from bigserial
to integer
. And in my schema I set it like this:
@primary_key {:revision_id, :integer, autogenerate: false}
But when I test it its still auto incrementing.
Am I missing something?
Thanks