Path: blob/master/core/main/ar-migrations/015_create_http.rb
1154 views
class CreateHttp < ActiveRecord::Migration[6.0]1def change2create_table :https do |t|3t.text :hooked_browser_id4# The http request to perform. In clear text.5t.text :request6# Boolean value as string to say whether cross-origin requests are allowed7t.boolean :allow_cross_origin, default: true8# The http response body received. In clear text.9t.text :response_data10# The http response code. Useful to handle cases like 404, 500, 302, ...11t.integer :response_status_code12# The http response code. Human-readable code: success, error, ecc..13t.text :response_status_text14# The port status. closed, open or not http15t.text :response_port_status16# The XHR Http response raw headers17t.text :response_headers18# The http response method. GET or POST.19t.text :method20# The content length for the request.21t.text :content_length, default: 022# The request protocol/scheme (http/https)23t.text :proto24# The domain on which perform the request.25t.text :domain26# The port on which perform the request.27t.text :port28# Boolean value to say if the request was cross-origin29t.text :has_ran, default: 'waiting'30# The path of the request.31# Example: /secret.html32t.text :path33# The date at which the http response has been saved.34t.datetime :response_date35# The date at which the http request has been saved.36t.datetime :request_date37end38end39end404142