Skip to content

Commit 85edd85

Browse files
authored
Merge pull request rails#46505 from ytjmt/fix-testing-guide
Fix URL for TIP about database permission problems in Testing Guides [ci-skip]
2 parents 994bce4 + 5cd84c9 commit 85edd85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ default. Loading involves three steps:
738738
2. Load the fixture data into the table
739739
3. Dump the fixture data into a method in case you want to access it directly
740740

741-
TIP: In order to remove existing data from the database, Rails tries to disable referential integrity triggers (like foreign keys and check constraints). If you are getting annoying permission errors on running tests, make sure the database user has privilege to disable these triggers in testing environment. (In PostgreSQL, only superusers can disable all triggers. Read more about PostgreSQL permissions [here](http://blog.endpoint.com/2012/10/postgres-system-triggers-error.html)).
741+
TIP: In order to remove existing data from the database, Rails tries to disable referential integrity triggers (like foreign keys and check constraints). If you are getting annoying permission errors on running tests, make sure the database user has privilege to disable these triggers in testing environment. (In PostgreSQL, only superusers can disable all triggers. Read more about PostgreSQL permissions [here](https://www.postgresql.org/docs/current/sql-altertable.html)).
742742

743743
#### Fixtures are Active Record Objects
744744

0 commit comments

Comments
 (0)