URI: 
       project.rb - warvox - VoIP based wardialing tool, forked from rapid7/warvox.
  HTML git clone git://jay.scot/warvox
   DIR Log
   DIR Files
   DIR Refs
   DIR 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 calls/jobs/lines
           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