We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
type
column_exists?
1 parent 8337645 commit e9a6c24Copy full SHA for e9a6c24
activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -124,6 +124,9 @@ def columns(table_name)
124
# column_exists?(:suppliers, :name)
125
#
126
# # Check a column exists of a particular type
127
+ # #
128
+ # # This works for standard non-casted types (eg. string) but is unreliable
129
+ # # for types that may get chasted (eg. char).
130
# column_exists?(:suppliers, :name, :string)
131
132
# # Check a column exists with a specific definition
0 commit comments