openstreetmap-website/db/migrate/20241022141247_create_note_subscriptions.rb
2024-10-28 02:35:25 +03:00

8 lines
285 B
Ruby

class CreateNoteSubscriptions < ActiveRecord::Migration[7.2]
def change
create_table :note_subscriptions, :primary_key => [:user_id, :note_id] do |t|
t.references :user, :foreign_key => true, :index => false
t.references :note, :foreign_key => true
end
end
end