Skip to content

Commit

Permalink
Update preset feature settings in yml files and README
Browse files Browse the repository at this point in the history
Simplified preset settings in 'preset_features.yml' and 'preset_usage.yml' files by combining several lines into one. These changes enhance the readability and maintainability of the code. Additionally, alignments and comments in 'preset_features.yml' and README file were adjusted for consistency and better readability.
  • Loading branch information
SmetDenis committed Apr 6, 2024
1 parent 9a0b46a commit 60bfd1d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1139,18 +1139,17 @@ columns:
- preset: users/email
- preset: users/full_name
- preset: users/birthday
- name: phone # Rename the column. "phone_number" => "phone".
preset: users/phone_number
- preset: users/password
rules:
length_min: 10 # Overridden value to force a strong password.
- preset: users/phone_number # Rename the column. "phone_number" => "phone".
name: phone
- preset: users/password # Overridden value to force a strong password.
rules: { length_min: 10 }
- name: admin_note # New column specific only this schema.
description: Admin note
rules:
not_empty: true
length_min: 1
length_max: 10
aggregate_rules: # In practice this will be a rare case, but the opportunity is there.
aggregate_rules: # In practice this will be a rare case, but the opportunity is there.
preset: db/id # Take only aggregate rules from the preset.
is_unique: true # Added new specific aggregate rule.
```
Expand Down
11 changes: 5 additions & 6 deletions schema-examples/preset_usage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,16 @@ columns:
- preset: users/email
- preset: users/full_name
- preset: users/birthday
- name: phone # Rename the column. "phone_number" => "phone".
preset: users/phone_number
- preset: users/password
rules:
length_min: 10 # Overridden value to force a strong password.
- preset: users/phone_number # Rename the column. "phone_number" => "phone".
name: phone
- preset: users/password # Overridden value to force a strong password.
rules: { length_min: 10 }
- name: admin_note # New column specific only this schema.
description: Admin note
rules:
not_empty: true
length_min: 1
length_max: 10
aggregate_rules: # In practice this will be a rare case, but the opportunity is there.
aggregate_rules: # In practice this will be a rare case, but the opportunity is there.
preset: db/id # Take only aggregate rules from the preset.
is_unique: true # Added new specific aggregate rule.

0 comments on commit 60bfd1d

Please sign in to comment.