Sha256: 02f74876a39f40e0e611bb48a870ae914c67e4f48102674ed833fff351de00c2
Contents?: true
Size: 1.21 KB
Versions: 22
Compression:
Stored size: 1.21 KB
Contents
class AddWebTables < ActiveRecord::Migration[4.2] def self.up create_table :web_sites do |t| t.integer :service_id, :null => false t.timestamps null: false 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 null: false 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 null: false 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 null: false 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
22 entries across 22 versions & 2 rubygems