Sha256: 38588b973e9afa21f92f812f9794520170853044a218b6fd6c979b6026f8d874
Contents?: true
Size: 451 Bytes
Versions: 22
Compression:
Stored size: 451 Bytes
Contents
class AddVulnAndHostCounterCaches < ActiveRecord::Migration[4.2] def self.up add_column :hosts, :host_detail_count, :integer, :default => 0 add_column :vulns, :vuln_detail_count, :integer, :default => 0 add_column :vulns, :vuln_attempt_count, :integer, :default => 0 end def self.down remove_column :hosts, :host_detail_count remove_column :vulns, :vuln_detail_count remove_column :vulns, :vuln_attempt_count end end
Version data entries
22 entries across 22 versions & 2 rubygems