method
assert_valid_default
assert_valid_default(default)
private
Hide source
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 120 def assert_valid_default(default) if blob_or_text_column? && default.present? raise ArgumentError, "#{type} columns cannot have a default value: #{default.inspect}" end end