@postxl/generator 0.40.0 → 0.40.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/utils/string.js +3 -0
- package/package.json +1 -1
package/dist/lib/utils/string.js
CHANGED
|
@@ -53,6 +53,9 @@ const irregularPlurals = {
|
|
|
53
53
|
datum: 'data',
|
|
54
54
|
diagnosis: 'diagnoses',
|
|
55
55
|
focus: 'foci',
|
|
56
|
+
// While `histories` is the plural of `history`, in a model context, `history` makes more sense:
|
|
57
|
+
// If you have a model called `UserHistory`, calling the table `UserHistories` would be confusing.
|
|
58
|
+
history: 'history',
|
|
56
59
|
hypothesis: 'hypotheses',
|
|
57
60
|
index: 'indices',
|
|
58
61
|
matrix: 'matrices',
|