Skip to content

Commit 77d185a

Browse files
authored
Merge pull request rails#43692 from ghiculescu/patch-7
Better `column_exists?` docs
2 parents ade4e7a + 14fde50 commit 77d185a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def columns(table_name)
126126
# # Check a column exists of a particular type
127127
# #
128128
# # This works for standard non-casted types (eg. string) but is unreliable
129-
# # for types that may get chasted (eg. char).
129+
# # for types that may get cast to something else (eg. char, bigint).
130130
# column_exists?(:suppliers, :name, :string)
131131
#
132132
# # Check a column exists with a specific definition

0 commit comments

Comments
 (0)