Cleanup Quantity :pathname related code

This commit is contained in:
2025-03-23 13:11:14 +01:00
parent 3b30e58ff3
commit 1cddc794d2
6 changed files with 13 additions and 46 deletions

View File

@@ -10,7 +10,7 @@ class CreateQuantities < ActiveRecord::Migration[7.2]
# Caches; can be computed from other attributes
t.integer :depth, null: false, default: 0
t.string :path, null: false, limit: 512
t.string :pathname, null: false, limit: 511
end
add_index :quantities, [:user_id, :parent_id, :name], unique: true
end