openstreetmap-website/db/migrate/20250105154621_validate_foreign_key_on_notes.rb
Nenad Vujicic 297e8374f4 Adds validating of notes foreign key
Adds migration for validation foreign key in notes table referencing users table.
2025-01-17 11:15:22 +01:00

5 lines
126 B
Ruby

class ValidateForeignKeyOnNotes < ActiveRecord::Migration[7.2]
def change
validate_foreign_key :notes, :users
end
end