Sha256: f758c12da9123b17395fc793c4a1925f7380034ea2ca90a49197fe0abb760eee

Contents?: true

Size: 1020 Bytes

Versions: 22

Compression:

Stored size: 1020 Bytes

Contents

class FixWebTables < ActiveRecord::Migration[4.2]
	
	def self.up
		change_column :web_pages, :path, :text
		change_column :web_pages, :query, :text
		change_column :web_pages, :cookie, :text
		change_column :web_pages, :auth, :text
		change_column :web_pages, :ctype, :text
		change_column :web_pages, :location, :text
		change_column :web_pages, :path, :text
		change_column :web_vulns, :path, :text
		change_column :web_vulns, :pname, :text
		
		add_column :web_pages, :request, :text
		add_column :web_vulns, :request, :text				
	end
	
	def self.down
		change_column :web_pages, :path, :text
		change_column :web_pages, :query, :text
		change_column :web_pages, :cookie, :text
		change_column :web_pages, :auth, :text
		change_column :web_pages, :ctype, :text
		change_column :web_pages, :location, :text
		change_column :web_pages, :path, :text
		change_column :web_vulns, :path, :text
		change_column :web_vulns, :pname, :text
		
		remove_column :web_pages, :request
		remove_column :web_vulns, :request
	end
end


Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
wg-metasploit_data_models-4.1.4.02 db/migrate/20101203000000_fix_web_tables.rb
metasploit_data_models-6.0.5 db/migrate/20101203000000_fix_web_tables.rb
metasploit_data_models-6.0.4 db/migrate/20101203000000_fix_web_tables.rb
metasploit_data_models-6.0.3 db/migrate/20101203000000_fix_web_tables.rb
metasploit_data_models-6.0.2 db/migrate/20101203000000_fix_web_tables.rb
metasploit_data_models-6.0.1 db/migrate/20101203000000_fix_web_tables.rb
metasploit_data_models-6.0.0 db/migrate/20101203000000_fix_web_tables.rb
metasploit_data_models-5.0.6 db/migrate/20101203000000_fix_web_tables.rb
metasploit_data_models-5.0.5 db/migrate/20101203000000_fix_web_tables.rb
metasploit_data_models-5.0.4 db/migrate/20101203000000_fix_web_tables.rb
metasploit_data_models-5.0.3 db/migrate/20101203000000_fix_web_tables.rb
metasploit_data_models-5.0.2 db/migrate/20101203000000_fix_web_tables.rb
metasploit_data_models-5.0.1 db/migrate/20101203000000_fix_web_tables.rb
metasploit_data_models-5.0.0 db/migrate/20101203000000_fix_web_tables.rb
metasploit_data_models-4.1.4 db/migrate/20101203000000_fix_web_tables.rb
metasploit_data_models-4.1.3 db/migrate/20101203000000_fix_web_tables.rb
metasploit_data_models-4.1.2 db/migrate/20101203000000_fix_web_tables.rb
metasploit_data_models-4.1.1 db/migrate/20101203000000_fix_web_tables.rb
metasploit_data_models-4.1.0 db/migrate/20101203000000_fix_web_tables.rb
metasploit_data_models-4.0.2 db/migrate/20101203000000_fix_web_tables.rb