Merge pull request #24136 from salmanasiddiqui/patch-1

Fixed comments of add_foreign_key method
This commit is contained in:
प्रथमेश Sonpatki 2016-03-10 16:36:28 +05:30
commit be9ee039b5
1 changed files with 2 additions and 2 deletions

View File

@ -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>]