[openstreetmap/openstreetmap-website] Enforce Not Null Constraints on Redaction Title and Description (PR #4566)

Ishmeet Singh notifications at github.com
Thu Mar 7 18:41:58 UTC 2024


Fixes: https://github.com/openstreetmap/openstreetmap-website/issues/2033
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/4566

-- Commit Summary --

  * Added migrations to add NOT NULL constraint to readaction title and description
  * Updated test cases for redaction to validate presence of title and description

-- File Changes --

    M app/models/redaction.rb (4)
    A db/migrate/20240307180830_add_check_constraint_to_redaction_title_and_description.rb (24)
    A db/migrate/20240307181018_validate_and_modify_redaction_title_and_description.rb (19)
    M test/models/redaction_test.rb (12)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/4566.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4566.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4566
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4566 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240307/669e22df/attachment.htm>


More information about the rails-dev mailing list