method

column_exists?

Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Class: Table

Not found

The exact documentation you were looking for could not be found. Here is the best guess.

column_exists?(column_name, type = nil, **options) public

Checks to see if a column exists.

t.string(:name) unless t.column_exists?(:name, :string)

See {connection.column_exists?}[rdoc-ref:SchemaStatements#column_exists?]

Show source
Register or log in to add new notes.