Sha256: 24e80beef04760557f77a66832fc69f82bdc88c2a5cbec6196273fb34b71e3cc
Contents?: true
Size: 434 Bytes
Versions: 94
Compression:
Stored size: 434 Bytes
Contents
class AddLoginsCounterCacheToCores < ActiveRecord::Migration def self.up add_column :metasploit_credential_cores, :logins_count, :integer, :default => 0 Metasploit::Credential::Core.reset_column_information Metasploit::Credential::Core.all.each do |c| Metasploit::Credential::Core.reset_counters c.id, :logins end end def self.down remove_column :metasploit_credential_cores, :logins_count end end
Version data entries
94 entries across 94 versions & 1 rubygems