search for: reset_pk_seqence

Displaying 1 result from an estimated 1 matches for "reset_pk_seqence".

Did you mean: reset_pk_sequence
2006 Jan 25
3
Resetting sequences in unit tests with pg
Hi all, Rails 1.0 Postgresql 8.1 Ruby 1.8.4 Is there a way to reset sequences in unit tests when loading fixture data? I came across mention of a "Fixtures.reset_sequences method here: http://api.rubyonrails.com/files/vendor/rails/activerecord/CHANGELOG.html However, when I tried to call Fixtures.reset_sequences in the setup method, I got a NoMethodError. Any ideas? Thanks, Dan