reset id of a table to beginning in postgres in rails
ActiveRecord::Base.connection.reset_pk_sequence!('table_name')