Skip to content

Commit

Permalink
Merge tool-collections into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
stage-branch-merger[bot] authored Jul 14, 2023
2 parents 932ece5 + 0cf45c7 commit b923893
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/rule_country.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
class RuleCountry < ApplicationRecord
belongs_to :tool_group

validates :tool_group_id, uniqueness: { scope: [:countries, :negative_rule], message: "combination already exists" }
end
2 changes: 2 additions & 0 deletions app/models/rule_language.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
class RuleLanguage < ApplicationRecord
belongs_to :tool_group

validates :tool_group_id, uniqueness: { scope: [:languages, :negative_rule], message: "combination already exists" }
end

0 comments on commit b923893

Please sign in to comment.