9 lines
266 B
Ruby
9 lines
266 B
Ruby
|
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) }
|
||
|
|
||
|
validates_presence_of :name, :url
|
||
|
end
|