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

Version Path
wg-metasploit_data_models-4.1.4.02 db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb
metasploit_data_models-6.0.5 db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb
metasploit_data_models-6.0.4 db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb
metasploit_data_models-6.0.3 db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb
metasploit_data_models-6.0.2 db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb
metasploit_data_models-6.0.1 db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb
metasploit_data_models-6.0.0 db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb
metasploit_data_models-5.0.6 db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb
metasploit_data_models-5.0.5 db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb
metasploit_data_models-5.0.4 db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb
metasploit_data_models-5.0.3 db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb
metasploit_data_models-5.0.2 db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb
metasploit_data_models-5.0.1 db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb
metasploit_data_models-5.0.0 db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb
metasploit_data_models-4.1.4 db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb
metasploit_data_models-4.1.3 db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb
metasploit_data_models-4.1.2 db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb
metasploit_data_models-4.1.1 db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb
metasploit_data_models-4.1.0 db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb
metasploit_data_models-4.0.2 db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb