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:
parent
5be6122c39
commit
12cecdd345
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue