diff options
author | Cezary Baginski <cezary.baginski@gmail.com> | 2010-05-01 23:33:36 +0200 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-05-01 18:53:07 -0700 |
commit | 256a15c23581865559cc758c2e377cd395cc05b3 (patch) | |
tree | 98f7061c0f6d479cf270a6e59603ca4f8e80b9aa | |
parent | 1b33a151b2da4f8d24a981e0fbaa008352c41aa0 (diff) | |
download | rails-256a15c23581865559cc758c2e377cd395cc05b3.tar.gz rails-256a15c23581865559cc758c2e377cd395cc05b3.tar.bz2 rails-256a15c23581865559cc758c2e377cd395cc05b3.zip |
AR: fixed postgres fixture tests [#4519 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
-rw-r--r-- | 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 0bc49c1daa..4bf33c3856 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 |