parent
5bf7f41005
commit
00458f79ab
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ class SharedSupplier < ApplicationRecord
|
||||||
# set correct table_name in external DB
|
# set correct table_name in external DB
|
||||||
self.table_name = 'suppliers'
|
self.table_name = 'suppliers'
|
||||||
|
|
||||||
has_many :suppliers
|
has_many :suppliers, -> { undeleted }
|
||||||
has_many :shared_articles, :foreign_key => :supplier_id
|
has_many :shared_articles, :foreign_key => :supplier_id
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue