1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-18 20:59:39 +02:00

Remove old unique index on device_id in mobile_devices migration to allow multiple users to share the same device.
Some checks failed
Publish Docker image / ci (push) Has been cancelled
Publish Docker image / Build docker image (push) Has been cancelled

This commit is contained in:
Josh Pigford 2025-07-09 09:22:51 -05:00
parent 8d0c1c5a56
commit a91441bcc8

View file

@ -2,8 +2,8 @@ class FixMobileDevicesUniqueConstraint < ActiveRecord::Migration[7.2]
def change def change
# Remove the old unique index on device_id only # Remove the old unique index on device_id only
remove_index :mobile_devices, :device_id, if_exists: true remove_index :mobile_devices, :device_id, if_exists: true
# The composite unique index on user_id and device_id already exists # The composite unique index on user_id and device_id already exists
# This allows the same device_id to be used by different users # This allows the same device_id to be used by different users
end end
end end