diff options
author | प्रथमेश Sonpatki <csonpatki@gmail.com> | 2016-03-10 16:36:28 +0530 |
---|---|---|
committer | प्रथमेश Sonpatki <csonpatki@gmail.com> | 2016-03-10 16:36:28 +0530 |
commit | be9ee039b57ca4eccf5235d5ea3c718086a17e0d (patch) | |
tree | 668d304d97f98330146da6272323d741fe04c8a6 | |
parent | 841c74ccba78f7d300a87835649a949da18879ad (diff) | |
parent | 56570ebfbae60850cb70f0cf4026ac4b8e61b6e8 (diff) | |
download | rails-be9ee039b57ca4eccf5235d5ea3c718086a17e0d.tar.gz rails-be9ee039b57ca4eccf5235d5ea3c718086a17e0d.tar.bz2 rails-be9ee039b57ca4eccf5235d5ea3c718086a17e0d.zip |
Merge pull request #24136 from salmanasiddiqui/patch-1
Fixed comments of add_foreign_key method
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index f0f855963a..a401310ee0 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -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>] |