aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-12-02 11:18:38 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-12-02 11:18:38 +0900
commit70c96b4423abacecb1116184c8ea4d4662b809f8 (patch)
tree8b748933156c3b2bf5631da06d651635040f58b8
parent9f33a8f06e5bba343b0d108a41246ab8368d71d3 (diff)
downloadrails-70c96b4423abacecb1116184c8ea4d4662b809f8.tar.gz
rails-70c96b4423abacecb1116184c8ea4d4662b809f8.tar.bz2
rails-70c96b4423abacecb1116184c8ea4d4662b809f8.zip
Fix method name in `validate_constraint` doc [ci skip]
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
index 38102b2e7a..af13a9e16f 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
@@ -594,7 +594,7 @@ module ActiveRecord
#
# Validates the constraint named +constraint_name+ on +accounts+.
#
- # validate_foreign_key :accounts, :constraint_name
+ # validate_constraint :accounts, :constraint_name
def validate_constraint(table_name, constraint_name)
return unless supports_validate_constraints?