Skip to content

Commit 0e189cb

Browse files
committed
Merge pull request rails#20993 from budnik/patch-1
Fixes documentation typo.[ci skip]
2 parents d517239 + a209652 commit 0e189cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,9 +761,9 @@ def foreign_keys(table_name)
761761
# [<tt>:name</tt>]
762762
# The constraint name. Defaults to <tt>fk_rails_<identifier></tt>.
763763
# [<tt>:on_delete</tt>]
764-
# Action that happens <tt>ON DELETE</tt>. Valid values are +:nullify+, +:cascade:+ and +:restrict+
764+
# Action that happens <tt>ON DELETE</tt>. Valid values are +:nullify+, +:cascade+ and +:restrict+
765765
# [<tt>:on_update</tt>]
766-
# Action that happens <tt>ON UPDATE</tt>. Valid values are +:nullify+, +:cascade:+ and +:restrict+
766+
# Action that happens <tt>ON UPDATE</tt>. Valid values are +:nullify+, +:cascade+ and +:restrict+
767767
def add_foreign_key(from_table, to_table, options = {})
768768
return unless supports_foreign_keys?
769769

0 commit comments

Comments
 (0)