]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20241022141247_create_note_subscriptions.rb
Don't send comment text when reopening a note
[rails.git] / db / migrate / 20241022141247_create_note_subscriptions.rb
1 class CreateNoteSubscriptions < ActiveRecord::Migration[7.2]
2   def change
3     create_table :note_subscriptions, :primary_key => [:user_id, :note_id] do |t|
4       t.references :user, :foreign_key => true, :index => false
5       t.references :note, :foreign_key => true
6     end
7   end
8 end