aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/has_one_through_associations_test.rb
diff options
context:
space:
mode:
authorFumiaki MATSUSHIMA <mtsmfm@gmail.com>2015-12-13 12:46:59 +0900
committerFumiaki MATSUSHIMA <mtsmfm@gmail.com>2017-03-26 17:12:13 +0900
commit2a129380e82c81caaf02a099f01d319f0d54a7ab (patch)
treeef892516ad430766e1af1e5a472ce0a4d24d3462 /activerecord/test/cases/associations/has_one_through_associations_test.rb
parentd96dde82b7ff3a216c16eb87e2d346341ad53c05 (diff)
downloadrails-2a129380e82c81caaf02a099f01d319f0d54a7ab.tar.gz
rails-2a129380e82c81caaf02a099f01d319f0d54a7ab.tar.bz2
rails-2a129380e82c81caaf02a099f01d319f0d54a7ab.zip
Use `SET CONSTRAINTS` for `disable_referential_integrity` without superuser privileges (take 2)
Re-create https://github.com/rails/rails/pull/21233 eeac6151a5 was reverted (127509c071b4) because it breaks tests. ---------------- ref: 72c1557254 - We must use `authors` fixture with `author_addresses` because of its foreign key constraint. - Tests require PostgreSQL >= 9.4.2 because it had a bug about `ALTER CONSTRAINTS` and fixed in 9.4.2.
Diffstat (limited to 'activerecord/test/cases/associations/has_one_through_associations_test.rb')
-rw-r--r--activerecord/test/cases/associations/has_one_through_associations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_one_through_associations_test.rb b/activerecord/test/cases/associations/has_one_through_associations_test.rb
index 38a729d2d4..28b883586d 100644
--- a/activerecord/test/cases/associations/has_one_through_associations_test.rb
+++ b/activerecord/test/cases/associations/has_one_through_associations_test.rb
@@ -23,7 +23,7 @@ require "models/customer_carrier"
class HasOneThroughAssociationsTest < ActiveRecord::TestCase
fixtures :member_types, :members, :clubs, :memberships, :sponsors, :organizations, :minivans,
- :dashboards, :speedometers, :authors, :posts, :comments, :categories, :essays, :owners
+ :dashboards, :speedometers, :authors, :author_addresses, :posts, :comments, :categories, :essays, :owners
def setup
@member = members(:groucho)