1
0

Proper nested records uniqueness validation

Test pass: test_create_duplicate_for_persisted_target_should_fail
This commit is contained in:
cryptogopher
2021-04-19 00:38:28 +02:00
parent dad116c573
commit 0b9401b089
10 changed files with 168 additions and 22 deletions

View File

@@ -81,7 +81,8 @@ class TargetsController < ApplicationController
:id,
:quantity_id,
:scope,
:destroy,
:effective_from,
:_destroy,
thresholds_attributes: [
:id,
:quantity_id,