Method: Sequel::Schema::CreateTableGenerator#has_column?

Defined in:
lib/sequel/database/schema_generator.rb

#has_column?(name) ⇒ Boolean

True if the generator includes the creation of a column with the given name.

Returns:

  • (Boolean)
[View source]

231
232
233
# File 'lib/sequel/database/schema_generator.rb', line 231

def has_column?(name)
  columns.any?{|c| c[:name] == name}
end