Sha256: 8c91de9eaeb193b1777f480c9dcad457d0b2452b4f63f39a78938fc886fbdaf4
Contents?: true
Size: 437 Bytes
Versions: 15
Compression:
Stored size: 437 Bytes
Contents
class CreateIndexOnPrivateDataAndTypeForSshKey < ActiveRecord::Migration def up sql =<<ENDL CREATE UNIQUE INDEX "index_metasploit_credential_privates_on_type_and_data_sshkey" ON "metasploit_credential_privates" ("type", decode(md5(data), 'hex')) WHERE type in ('Metasploit::Credential::SSHKey') ENDL execute(sql) end def down execute("DROP INDEX index_metasploit_credential_privates_on_type_and_data_sshkey") end end
Version data entries
15 entries across 15 versions & 1 rubygems