इसे आजमाएं
$ heroku run rails console
irb(main)> ActiveRecord::Base.connection.tables.each { |t| ActiveRecord::Base.connection.reset_pk_sequence!(t) }
स्रोत:https://stackoverflow.com/a/15108735/3034747
इसे आजमाएं
$ heroku run rails console
irb(main)> ActiveRecord::Base.connection.tables.each { |t| ActiveRecord::Base.connection.reset_pk_sequence!(t) }
स्रोत:https://stackoverflow.com/a/15108735/3034747