1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

AR: fixed postgres fixture tests [#4519 state:resolved]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
This commit is contained in:
Cezary Baginski 2010-05-01 23:33:36 +02:00 committed by Jeremy Kemper
parent 1b33a151b2
commit 256a15c235

View file

@ -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