[openstreetmap/openstreetmap-website] Adds migration for adding description, user_id, user_ip columns to notes (PR #5499)

Nenad Vujicic notifications at github.com
Tue Jan 14 18:00:49 UTC 2025


### Description
PR adds migration script for adding new columns (`description`, `user_id`, `user_ip`) to `notes` table. Also, migration adds foreign key (with turned OFF validation) connecting `notes` and `users` tables (using `user_id` column).

This PR is 2nd from set of PRs described [here](https://github.com/openstreetmap/openstreetmap-website/pull/5485#pullrequestreview-2545467592).

### How has this been tested?
Automated unit tests and manual testing
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Added description, user_id, user_ip columns to notes

-- File Changes --

    M app/models/note.rb (23)
    A db/migrate/20250104140952_add_description_to_notes.rb (9)
    M db/structure.sql (14)

-- Patch Links --

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

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

Message ID: <openstreetmap/openstreetmap-website/pull/5499 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250114/7237d4a7/attachment.htm>


More information about the rails-dev mailing list