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

Merge pull request #43692 from ghiculescu/patch-7

Better `column_exists?` docs
This commit is contained in:
Rafael Mendonça França 2021-11-22 15:34:25 -05:00 committed by GitHub
commit 77d185a1de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,7 +126,7 @@ module ActiveRecord
# # Check a column exists of a particular type
# #
# # This works for standard non-casted types (eg. string) but is unreliable
# # for types that may get chasted (eg. char).
# # for types that may get cast to something else (eg. char, bigint).
# column_exists?(:suppliers, :name, :string)
#
# # Check a column exists with a specific definition