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

Version Path
metasploit-credential-6.0.11 db/migrate/20161107203710_create_index_on_private_data_and_type_for_ssh_key.rb
metasploit-credential-6.0.10 db/migrate/20161107203710_create_index_on_private_data_and_type_for_ssh_key.rb
metasploit-credential-6.0.9 db/migrate/20161107203710_create_index_on_private_data_and_type_for_ssh_key.rb
metasploit-credential-6.0.8 db/migrate/20161107203710_create_index_on_private_data_and_type_for_ssh_key.rb
metasploit-credential-6.0.7 db/migrate/20161107203710_create_index_on_private_data_and_type_for_ssh_key.rb
metasploit-credential-6.0.6 db/migrate/20161107203710_create_index_on_private_data_and_type_for_ssh_key.rb
metasploit-credential-6.0.5 db/migrate/20161107203710_create_index_on_private_data_and_type_for_ssh_key.rb
metasploit-credential-6.0.4 db/migrate/20161107203710_create_index_on_private_data_and_type_for_ssh_key.rb
metasploit-credential-6.0.3 db/migrate/20161107203710_create_index_on_private_data_and_type_for_ssh_key.rb
metasploit-credential-6.0.2 db/migrate/20161107203710_create_index_on_private_data_and_type_for_ssh_key.rb
metasploit-credential-6.0.1 db/migrate/20161107203710_create_index_on_private_data_and_type_for_ssh_key.rb
metasploit-credential-6.0.0 db/migrate/20161107203710_create_index_on_private_data_and_type_for_ssh_key.rb
metasploit-credential-5.0.9 db/migrate/20161107203710_create_index_on_private_data_and_type_for_ssh_key.rb
metasploit-credential-5.0.8 db/migrate/20161107203710_create_index_on_private_data_and_type_for_ssh_key.rb
metasploit-credential-5.0.7 db/migrate/20161107203710_create_index_on_private_data_and_type_for_ssh_key.rb
metasploit-credential-5.0.6 db/migrate/20161107203710_create_index_on_private_data_and_type_for_ssh_key.rb
metasploit-credential-5.0.5 db/migrate/20161107203710_create_index_on_private_data_and_type_for_ssh_key.rb
metasploit-credential-5.0.4 db/migrate/20161107203710_create_index_on_private_data_and_type_for_ssh_key.rb
metasploit-credential-5.0.3 db/migrate/20161107203710_create_index_on_private_data_and_type_for_ssh_key.rb
metasploit-credential-5.0.2 db/migrate/20161107203710_create_index_on_private_data_and_type_for_ssh_key.rb