method
validate_change_column_null_argument!
v7.1.3.2 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::SchemaStatements
validate_change_column_null_argument!(value)private
No documentation available.
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1572
def validate_change_column_null_argument!(value)
unless value == true || value == false
raise ArgumentError, "change_column_null expects a boolean value (true for NULL, false for NOT NULL). Got: #{value.inspect}"
end
end