Revert "Add association Account#own_regional_office"
This reverts commit 2024d3648c
.
This commit is contained in:
parent
a7fb680f60
commit
c59dde1834
2 changed files with 0 additions and 15 deletions
|
@ -14,12 +14,6 @@ class Account < ApplicationRecord
|
||||||
class_name: 'MembershipApp',
|
class_name: 'MembershipApp',
|
||||||
dependent: :restrict_with_exception
|
dependent: :restrict_with_exception
|
||||||
|
|
||||||
has_one :own_regional_office,
|
|
||||||
class_name: 'RegionalOffice',
|
|
||||||
inverse_of: false,
|
|
||||||
through: :person,
|
|
||||||
source: :regional_office
|
|
||||||
|
|
||||||
has_many :passport_confirmations, dependent: :restrict_with_exception
|
has_many :passport_confirmations, dependent: :restrict_with_exception
|
||||||
|
|
||||||
scope :guests, -> { includes(:user).where(users: { id: nil }) }
|
scope :guests, -> { includes(:user).where(users: { id: nil }) }
|
||||||
|
|
|
@ -26,15 +26,6 @@ RSpec.describe Account do
|
||||||
.dependent(:restrict_with_exception)
|
.dependent(:restrict_with_exception)
|
||||||
end
|
end
|
||||||
|
|
||||||
it do
|
|
||||||
is_expected.to \
|
|
||||||
have_one(:own_regional_office)
|
|
||||||
.class_name('RegionalOffice')
|
|
||||||
.inverse_of(false)
|
|
||||||
.through(:person)
|
|
||||||
.source(:regional_office)
|
|
||||||
end
|
|
||||||
|
|
||||||
it do
|
it do
|
||||||
is_expected.to \
|
is_expected.to \
|
||||||
have_many(:passport_confirmations)
|
have_many(:passport_confirmations)
|
||||||
|
|
Reference in a new issue