提交 12cecdd3 编写于 作者: P Prathamesh Sonpatki

Fixed typo : contraints -> constraints

上级 5be6122c
......@@ -114,7 +114,7 @@ class << @connection
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 @@ def test_disable_referential_integrity
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册