Flowdock
method

emit_warning_if_null_unspecified

Importance_0
v4.2.9 - Show latest stable - 0 notes - Class: TimestampDefaultDeprecation
emit_warning_if_null_unspecified(sym, options) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 60
      def emit_warning_if_null_unspecified(sym, options)
        return if options.key?(:null)

        ActiveSupport::Deprecation.warn(          `##{sym}` was called without specifying an option for `null`. In Rails 5,          this behavior will change to `null: false`. You should manually specify         `null: true` to prevent the behavior of your existing migrations from changing..squish)
      end
Register or log in to add new notes.