Sha256: 84f5ba57347bd219d08244ae93b3de62d3e6a4c290f2ce4bf36254228c44924e
Contents?: true
Size: 442 Bytes
Versions: 28
Compression:
Stored size: 442 Bytes
Contents
class CreateIndexOnPrivateDataAndTypeForSshKey < ActiveRecord::Migration[4.2] 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
28 entries across 28 versions & 1 rubygems