]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20241022141247_create_note_subscriptions.rb
Add frozen_string_literal comments to ruby files
[rails.git] / db / migrate / 20241022141247_create_note_subscriptions.rb
1 # frozen_string_literal: true
2
3 class CreateNoteSubscriptions < ActiveRecord::Migration[7.2]
4   def change
5     create_table :note_subscriptions, :primary_key => [:user_id, :note_id] do |t|
6       t.references :user, :foreign_key => true, :index => false
7       t.references :note, :foreign_key => true
8     end
9   end
10 end