method

assert_valid_default

rails latest stable - Class: ActiveRecord::ConnectionAdapters::MySQL::Column

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.0.0.1) is shown here.

assert_valid_default()
private

No documentation available.

# File activerecord/lib/active_record/connection_adapters/mysql/column.rb, line 42
        def assert_valid_default
          if blob_or_text_column? && default.present?
            raise ArgumentError, "#{type} columns cannot have a default value: #{default.inspect}"
          end
        end