Skip to content

Commit

Permalink
Merge pull request rails#53353 from wowinter13/fix-incorrect-indentation
Browse files Browse the repository at this point in the history
Fix incorrect indentation in `association_basics.md` [ci skip]
  • Loading branch information
fatkodima authored Oct 17, 2024
2 parents ee66185 + 09b83bc commit e71a6d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guides/source/association_basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -2602,12 +2602,12 @@ Controls what happens to the associated object when its owner is destroyed:
Do not use this option if the association is backed by foreign key constraints
in your database. The foreign key constraint actions will occur inside the
same transaction that deletes its owner.
* `:nullify` causes the foreign key to be set to `NULL`. Polymorphic type
* `:nullify` causes the foreign key to be set to `NULL`. Polymorphic type
column is also nullified on polymorphic associations. Callbacks are not
executed.
* `:restrict_with_exception` causes an `ActiveRecord::DeleteRestrictionError`
* `:restrict_with_exception` causes an `ActiveRecord::DeleteRestrictionError`
exception to be raised if there is an associated record
* `:restrict_with_error` causes an error to be added to the owner if there is
* `:restrict_with_error` causes an error to be added to the owner if there is
an associated object

WARNING: You should not specify this option on a `belongs_to` association that
Expand Down

0 comments on commit e71a6d4

Please sign in to comment.