hoangdangninh
3/30/2017 - 5:04 AM

reset id of a table to beginning in postgres in rails

reset id of a table to beginning in postgres in rails

ActiveRecord::Base.connection.reset_pk_sequence!('table_name')