Add supplier_categories to BankAccount

This commit is contained in:
Patrick Gansterer 2022-02-18 12:38:58 +01:00
parent 8f92915818
commit cdc9e91d26

View file

@ -1,5 +1,6 @@
class BankAccount < ApplicationRecord class BankAccount < ApplicationRecord
has_many :bank_transactions, dependent: :destroy has_many :bank_transactions, dependent: :destroy
has_many :supplier_categories, dependent: :nullify
belongs_to :bank_gateway, optional: true belongs_to :bank_gateway, optional: true
normalize_attributes :name, :iban, :description normalize_attributes :name, :iban, :description