diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-04-08 18:38:51 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-04-08 18:38:51 -0300 |
commit | d7505b820fa711d4fe837aa03cd3855cc82ee909 (patch) | |
tree | 5ad26dac131df6e9369395457d2f261197c9f07f | |
parent | 991875fc6f04625425fdf4cff8d350cf3f91f858 (diff) | |
parent | 41b2ba5926ab01be517c8e8c51cc168b1cb00837 (diff) | |
download | rails-d7505b820fa711d4fe837aa03cd3855cc82ee909.tar.gz rails-d7505b820fa711d4fe837aa03cd3855cc82ee909.tar.bz2 rails-d7505b820fa711d4fe837aa03cd3855cc82ee909.zip |
Merge pull request #19698 from stemps/master
fix documentation for SchemaStatements#add_foreign_key
-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 ab1b098e53..f0909aabb5 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -690,8 +690,8 @@ module ActiveRecord # +to_table+ contains the referenced primary key. # # The foreign key will be named after the following pattern: <tt>fk_rails_<identifier></tt>. - # +identifier+ is a 10 character long random string. A custom name can be specified with - # the <tt>:name</tt> option. + # +identifier+ is a 10 character long string which is deterministically generated from the + # +from_table+ and +column+. A custom name can be specified with the <tt>:name</tt> option. # # ====== Creating a simple foreign key # |