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

Fixed typo : contraints -> constraints

This commit is contained in:
Prathamesh Sonpatki 2013-03-23 09:40:32 +05:30
parent 5be6122c39
commit 12cecdd345

View file

@ -114,7 +114,7 @@ module ActiveRecord
end
end
# test resetting sequences in odd tables in postgreSQL
# test resetting sequences in odd tables in PostgreSQL
if ActiveRecord::Base.connection.respond_to?(:reset_pk_sequence!)
require 'models/movie'
require 'models/subscriber'
@ -167,7 +167,7 @@ module ActiveRecord
else
@connection.execute "INSERT INTO fk_test_has_fk (fk_id) VALUES (0)"
end
# should deleted created record as otherwise disable_referential_integrity will try to enable contraints after executed block
# should deleted created record as otherwise disable_referential_integrity will try to enable constraints after executed block
# and will fail (at least on Oracle)
@connection.execute "DELETE FROM fk_test_has_fk"
end