Skip to content

Commit 14fde50

Browse files
authored
Better column_exists? docs
- Fixes a typo - rails#43687 (comment) - Gives another real life example (bigint) Still needs more work to try and make all this make sense (or to fix the root issue) but I wanted to put this up to get started.
1 parent ade4e7a commit 14fde50

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)