Sha256: 87e3f18b4f28cb06b2ef220f58239f55a7fbb420682659eba8a806108803f0fb

Contents?: true

Size: 404 Bytes

Versions: 28

Compression:

Stored size: 404 Bytes

Contents

class AddTypetoPublic < ActiveRecord::Migration[4.2]
  def change
    change_table :metasploit_credential_publics do |t|
      #
      # Single Table Inheritance
      #

      t.string :type, null: true
      execute "UPDATE metasploit_credential_publics SET type = 'Metasploit::Credential::Username'"

      change_column :metasploit_credential_publics, :type, :string, null: false

    end
  end

end

Version data entries

28 entries across 28 versions & 1 rubygems

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