mirror of https://github.com/rails/rails
Merge pull request #24136 from salmanasiddiqui/patch-1
Fixed comments of add_foreign_key method
This commit is contained in:
commit
be9ee039b5
|
@ -854,7 +854,7 @@ module ActiveRecord
|
|||
#
|
||||
# generates:
|
||||
#
|
||||
# ALTER TABLE "articles" ADD CONSTRAINT articles_author_id_fk FOREIGN KEY ("author_id") REFERENCES "authors" ("id")
|
||||
# ALTER TABLE "articles" ADD CONSTRAINT fk_rails_e74ce85cbc FOREIGN KEY ("author_id") REFERENCES "authors" ("id")
|
||||
#
|
||||
# ====== Creating a foreign key on a specific column
|
||||
#
|
||||
|
@ -870,7 +870,7 @@ module ActiveRecord
|
|||
#
|
||||
# generates:
|
||||
#
|
||||
# ALTER TABLE "articles" ADD CONSTRAINT articles_author_id_fk FOREIGN KEY ("author_id") REFERENCES "authors" ("id") ON DELETE CASCADE
|
||||
# ALTER TABLE "articles" ADD CONSTRAINT fk_rails_e74ce85cbc FOREIGN KEY ("author_id") REFERENCES "authors" ("id") ON DELETE CASCADE
|
||||
#
|
||||
# The +options+ hash can include the following keys:
|
||||
# [<tt>:column</tt>]
|
||||
|
|
Loading…
Reference in New Issue