1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove :nodoc: from the methods which is added the doc [ci skip]

Follow up of #19171 and #26825.
This commit is contained in:
Ryuta Kamizono 2018-05-15 05:07:23 +09:00
parent ff083eea0b
commit 268dd6966d

View file

@ -664,19 +664,19 @@ module ActiveRecord
# Adds a foreign key.
#
# t.foreign_key(:authors)
# t.foreign_key(:authors)
#
# See {connection.add_foreign_key}[rdoc-ref:SchemaStatements#add_foreign_key]
def foreign_key(*args) # :nodoc:
def foreign_key(*args)
@base.add_foreign_key(name, *args)
end
# Checks to see if a foreign key exists.
#
# t.foreign_key(:authors) unless t.foreign_key_exists?(:authors)
# t.foreign_key(:authors) unless t.foreign_key_exists?(:authors)
#
# See {connection.foreign_key_exists?}[rdoc-ref:SchemaStatements#foreign_key_exists?]
def foreign_key_exists?(*args) # :nodoc:
def foreign_key_exists?(*args)
@base.foreign_key_exists?(name, *args)
end
end