Sha256: 2395c32802c15a1f1dd2dcc09aea441e31653a110055b9071c72f19a8241bf05

Contents?: true

Size: 350 Bytes

Versions: 15

Compression:

Stored size: 350 Bytes

Contents

class RecreateIndexOnPrivateDataAndType < ActiveRecord::Migration
  def change
    remove_index :metasploit_credential_privates, [:type, :data]
    
    change_table :metasploit_credential_privates do |t|
      t.index [:type, :data],
              unique: true,
              where: "NOT (type = 'Metasploit::Credential::SSHKey')"
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
metasploit-credential-3.0.4 db/migrate/20161107153145_recreate_index_on_private_data_and_type.rb
metasploit-credential-3.0.3 db/migrate/20161107153145_recreate_index_on_private_data_and_type.rb
metasploit-credential-3.0.2 db/migrate/20161107153145_recreate_index_on_private_data_and_type.rb
metasploit-credential-3.0.1 db/migrate/20161107153145_recreate_index_on_private_data_and_type.rb
metasploit-credential-3.0.0 db/migrate/20161107153145_recreate_index_on_private_data_and_type.rb
metasploit-credential-2.0.14 db/migrate/20161107153145_recreate_index_on_private_data_and_type.rb
metasploit-credential-2.0.13 db/migrate/20161107153145_recreate_index_on_private_data_and_type.rb
metasploit-credential-2.0.12 db/migrate/20161107153145_recreate_index_on_private_data_and_type.rb
metasploit-credential-2.0.11 db/migrate/20161107153145_recreate_index_on_private_data_and_type.rb
metasploit-credential-2.0.10 db/migrate/20161107153145_recreate_index_on_private_data_and_type.rb
metasploit-credential-2.0.9 db/migrate/20161107153145_recreate_index_on_private_data_and_type.rb
metasploit-credential-2.0.8 db/migrate/20161107153145_recreate_index_on_private_data_and_type.rb
metasploit-credential-2.0.7 db/migrate/20161107153145_recreate_index_on_private_data_and_type.rb
metasploit-credential-2.0.6 db/migrate/20161107153145_recreate_index_on_private_data_and_type.rb
metasploit-credential-2.0.5 db/migrate/20161107153145_recreate_index_on_private_data_and_type.rb