mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge pull request #2466 from rsim/fix_test_disable_referential_integrity
Fixed test_disable_referential_integrity on Oracle
This commit is contained in:
@@ -151,6 +151,9 @@ class AdapterTest < ActiveRecord::TestCase
|
||||
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
|
||||
# and will fail (at least on Oracle)
|
||||
@connection.execute "DELETE FROM fk_test_has_fk"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user