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:
commit
77d185a1de
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue