Class: ActiveRecord::ConnectionAdapters::IBM_DBColumn
- Defined in:
- lib/connection_adapters/ibm_db_adapter.rb
Instance Method Summary collapse
-
#is_nullable? ⇒ Boolean
This method will return true if the database will accept a null value for this column on insert/update.
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
10 11 12 |
# File 'lib/connection_adapters/ibm_db_adapter.rb', line 10 def is_nullable? @null || !default.nil? end |