I've made some changes using the question I'd answered. I need to have 8 bytes on the Model id
.
I need to change the id
to a different unique number:
Product.where(title: "Foo").update_attributes(id: 123456789)
# NoMethodError: undefined method `to_sym' for nil:NilClass
I've tried few answers but still getting errors. Do you need to see each error based on which method used? I know this is caused by the 8 byte changes I've done. Have I done it the correct way? How to change the id
?
Edit
For some strange and scary reason, I have to recreate the database for this to work:
Product.where(title: "Foo").update_all(id: 123456789)