Class: ActiveRecord::ConnectionAdapters::IBM_DBColumn

Inherits:
Column
  • Object
show all
Defined in:
lib/connection_adapters/ibm_db_adapter.rb

Instance Method Summary collapse

Instance Method Details

#is_nullable?Boolean

This method will return true if the database will accept a null value for this column on insert/update. Note that even though the column may have a NOT NULL constraint, the DB will accept a null value if a default value is specified

Returns:

  • (Boolean)


10
11
12
# File 'lib/connection_adapters/ibm_db_adapter.rb', line 10

def is_nullable?
	@null || !default.nil?
end