What im using now is ActiveRecord::Base.connection.execute(‘TRUNCATE
table_products’) to reset the id back to 1. Is there another way without
using direct sql command to reset the id back to 1?
in mysql:
ALTER TABLE
What im using now is ActiveRecord::Base.connection.execute(‘TRUNCATE
table_products’) to reset the id back to 1. Is there another way without
using direct sql command to reset the id back to 1?
in mysql:
ALTER TABLE
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs