From 3099cb23939db56c20879c3e1de6aed35b418727 Mon Sep 17 00:00:00 2001 From: Cezary Baginski Date: Sat, 1 May 2010 23:33:36 +0200 Subject: [PATCH] AR: fixed postgres fixture tests [#4519 state:resolved] --- activerecord/lib/active_record/fixtures.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb index 0bc49c1..4bf33c3 100644 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -516,7 +516,7 @@ class Fixtures < (RUBY_VERSION < '1.9' ? YAML::Omap : Hash) # Cap primary key sequences to max(pk). if connection.respond_to?(:reset_pk_sequence!) table_names.each do |table_name| - connection.reset_pk_sequence!(table_name) + connection.reset_pk_sequence!(table_name.tr('/', '_')) end end end -- 1.6.3.3