2021-03-05 12:43:40 +01:00
|
|
|
class BankGateway < ApplicationRecord
|
|
|
|
has_many :bank_accounts, dependent: :nullify
|
|
|
|
belongs_to :unattended_user, class_name: 'User', optional: true
|
|
|
|
|
|
|
|
scope :with_unattended_support, -> { where.not(unattended_user: nil) }
|
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
validates :name, :url, presence: true
|
2021-03-05 12:43:40 +01:00
|
|
|
end
|