1
0
Fork 0

Revert "Add association Account#own_regional_office"

This reverts commit 2024d3648c.
This commit is contained in:
Alex Kotov 2018-12-15 09:43:35 +05:00
parent a7fb680f60
commit c59dde1834
No known key found for this signature in database
GPG key ID: 4E831250F47DE154
2 changed files with 0 additions and 15 deletions

View file

@ -14,12 +14,6 @@ class Account < ApplicationRecord
class_name: 'MembershipApp',
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
scope :guests, -> { includes(:user).where(users: { id: nil }) }

View file

@ -26,15 +26,6 @@ RSpec.describe Account do
.dependent(:restrict_with_exception)
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
is_expected.to \
have_many(:passport_confirmations)