Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix AR::SchemaStatements#column_exists? example [ci skip]

  • Loading branch information...
commit 9b45f0fb712ec1b649b8d482f9552a41ed5e19e2 1 parent 6727e3c
@frodsan frodsan authored
View
2  activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -65,7 +65,7 @@ def columns(table_name) end
#
# # Check a column exists with a specific definition
# column_exists?(:suppliers, :name, :string, limit: 100)
- # column_exists?(:suppliers, :name, :string, default: 'default'
+ # column_exists?(:suppliers, :name, :string, default: 'default')
# column_exists?(:suppliers, :name, :string, null: false)
# column_exists?(:suppliers, :tax, :decimal, precision: 8, scale: 2)
def column_exists?(table_name, column_name, type = nil, options = {})
Please sign in to comment.
Something went wrong with that request. Please try again.