spec/dummy/app/models/role.rb in aaf-gumboot-1.1.0 vs spec/dummy/app/models/role.rb in aaf-gumboot-1.2.0

- old
+ new

@@ -1,13 +1,13 @@ # frozen_string_literal: true class Role < ApplicationRecord - has_many :api_subject_roles - has_many :api_subjects, through: :api_subject_roles + has_many :api_subject_roles, dependent: :destroy + has_many :api_subjects, through: :api_subject_roles, dependent: :destroy - has_many :subject_roles - has_many :subjects, through: :subject_roles + has_many :subject_roles, dependent: :destroy + has_many :subjects, through: :subject_roles, dependent: :destroy - has_many :permissions + has_many :permissions, dependent: :destroy valhammer end