From a91441bcc8b8b416e2c36e57b853365be661d610 Mon Sep 17 00:00:00 2001 From: Josh Pigford Date: Wed, 9 Jul 2025 09:22:51 -0500 Subject: [PATCH] Remove old unique index on device_id in mobile_devices migration to allow multiple users to share the same device. --- .../20250702173231_fix_mobile_devices_unique_constraint.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrate/20250702173231_fix_mobile_devices_unique_constraint.rb b/db/migrate/20250702173231_fix_mobile_devices_unique_constraint.rb index f45a6484..6ef8539e 100644 --- a/db/migrate/20250702173231_fix_mobile_devices_unique_constraint.rb +++ b/db/migrate/20250702173231_fix_mobile_devices_unique_constraint.rb @@ -2,8 +2,8 @@ class FixMobileDevicesUniqueConstraint < ActiveRecord::Migration[7.2] def change # Remove the old unique index on device_id only remove_index :mobile_devices, :device_id, if_exists: true - + # The composite unique index on user_id and device_id already exists # This allows the same device_id to be used by different users end -end \ No newline at end of file +end