Sha256: d6ff1972c2ff1509cb7e07641fd208956e1a54dfa90e693876cc32a687451bf7

Contents?: true

Size: 1.18 KB

Versions: 110

Compression:

Stored size: 1.18 KB

Contents

class AddWebTables < ActiveRecord::Migration
	
	def self.up
		create_table :web_sites do |t|
			t.integer   :service_id, :null => false
			t.timestamps 
			t.string    :vhost, :limit => 2048
			t.text      :comments
			t.text      :options
		end
		
		create_table :web_pages do |t|
			t.integer   :web_site_id, :null => false
			t.timestamps 
			t.text      :path
			t.text      :query
			t.integer   :code, :null => false
			t.text      :cookie
			t.text      :auth
			t.text      :ctype
			t.timestamp :mtime				
			t.text      :location
			t.text      :body
			t.text      :headers
		end	

		create_table :web_forms do |t|
			t.integer   :web_site_id, :null => false
			t.timestamps 
			t.text      :path
			t.string    :method, :limit => 1024
			t.text      :params
		end	

		create_table :web_vulns do |t|
			t.integer   :web_site_id, :null => false
			t.timestamps 
			t.text      :path
			t.string    :method, :limit => 1024
			t.text      :params
			t.text      :pname
			t.text      :proof
			t.integer   :risk
			t.string    :name,    :limit => 1024	
		end	
							
	end
	
	def self.down
		drop_table :web_sites
		drop_table :web_pages
		drop_table :web_forms
		drop_table :web_vulns
	end
end


Version data entries

110 entries across 110 versions & 1 rubygems

Version Path
metasploit_data_models-0.24.5 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-0.24.4 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-0.24.3 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-0.24.2 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-0.24.1.pre.rspec.pre.3.pre.1 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-0.24.1 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-0.24.0 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-0.23.3.pre.autoload db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-0.23.2 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-0.23.2-java db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-0.23.1 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-0.23.1-java db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-0.23.0 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-0.23.0-java db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-0.22.8 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-0.22.8-java db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-0.22.7 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-0.22.7-java db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-0.22.6 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-0.22.6-java db/migrate/20101001000000_add_web_tables.rb