Introduction
Introduction Statistics Contact Development Disclaimer Help
project.rb - warvox - VoIP based wardialing tool, forked from rapid7/warvox.
git clone git://jay.scot/warvox
Log
Files
Refs
README
---
project.rb (707B)
---
1 # == Schema Information
2 #
3 # Table name: projects
4 #
5 # id :integer not null, primary key
6 # created_at :datetime
7 # updated_at :datetime
8 # name :text not null
9 # description :text
10 # included :text
11 # excluded :text
12 # created_by :string(255)
13 #
14
15 class Project < ApplicationRecord
16
17 validates_presence_of :name
18 validates_uniqueness_of :name
19
20 # This is optimized for fast project deletion, even with thousands of …
21 has_many :lines, dependent: :delete_all
22 has_many :line_attributes, dependent: :delete_all
23 has_many :calls, dependent: :delete_all
24 has_many :call_media, dependent: :delete_all
25 has_many :jobs, dependent: :delete_all
26 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.