Introduction
Introduction Statistics Contact Development Disclaimer Help
provider.rb - warvox - VoIP based wardialing tool, forked from rapid7/warvox.
git clone git://jay.scot/warvox
Log
Files
Refs
README
---
provider.rb (687B)
---
1 # == Schema Information
2 #
3 # Table name: providers
4 #
5 # id :integer not null, primary key
6 # created_at :datetime
7 # updated_at :datetime
8 # name :text not null
9 # host :text not null
10 # port :integer not null
11 # user :text
12 # pass :text
13 # lines :integer default(1), not null
14 # enabled :boolean default(TRUE)
15 #
16
17 class Provider < ApplicationRecord
18 has_many :dial_results
19
20 validates_presence_of :name, :host, :port, :user, :pass, :lines
21 validates_numericality_of :port, less_than: 65536, greater_than: 0
22 validates_numericality_of :lines, less_than: 255, greater_than: 0
23 end
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.