Method: ActiveRecord::ConnectionAdapters::SchemaStatements#options_include_default?

Defined in:
activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb

#options_include_default?(options) ⇒ Boolean

Returns:

  • (Boolean)


1212
1213
1214
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb', line 1212

def options_include_default?(options)
  options.include?(:default) && !(options[:null] == false && options[:default].nil?)
end