mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 13:35:21 +02:00
Update database schema: increment version to 2025_07_02_173231, modify virtual column definition for classification, and add new indexes for entries and exchange rates.
This commit is contained in:
parent
e848db2aa1
commit
8d0c1c5a56
2 changed files with 18 additions and 3 deletions
|
@ -0,0 +1,9 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue