Sha256: 514baa0e2cb30e7c0217dc10812789b6505644be4fdb86bca0fd3aeecb19940a

Contents?: true

Size: 1.05 KB

Versions: 12

Compression:

Stored size: 1.05 KB

Contents

# frozen_string_literal: true

class CreateRmp < ActiveRecord::Migration[6.0]
  def change
    create_table :rmp_profiled_requests do |t|
      t.string :user_id
      t.bigint :start
      t.bigint :finish
      t.integer :duration
      t.bigint :allocations
      t.string :request_path
      t.string :request_query_string
      t.string :request_method
      t.json :request_headers
      t.text :request_body
      t.integer :response_status
      t.text :response_body
      t.json :response_headers
      t.string :response_media_type

      t.timestamps

      t.index :created_at
    end

    create_table :rmp_traces do |t|
      t.belongs_to :rmp_profiled_request, null: false, foreign_key: true
      t.string :name
      t.bigint :start
      t.bigint :finish
      t.integer :duration
      t.bigint :allocations
      t.json :payload
      t.json :backtrace

      t.timestamps
    end

    create_table :rmp_flamegraphs do |t|
      t.belongs_to :rmp_profiled_request, null: false, foreign_key: true
      t.binary :data

      t.timestamps
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rails_mini_profiler-0.7.1 db/migrate/20210621185018_create_rmp.rb
rails_mini_profiler-0.7.0 db/migrate/20210621185018_create_rmp.rb
rails_mini_profiler-0.6.0 db/migrate/20210621185018_create_rmp.rb
rails_mini_profiler-0.5.0 db/migrate/20210621185018_create_rmp.rb
rails_mini_profiler-0 db/migrate/20210621185018_create_rmp.rb
rails_mini_profiler-0.4.0 db/migrate/20210621185018_create_rmp.rb
rails_mini_profiler-0.3.0 db/migrate/20210621185018_create_rmp.rb
rails_mini_profiler-0.2.1 db/migrate/20210621185018_create_rmp.rb
rails_mini_profiler-0.2.0 db/migrate/20210621185018_create_rmp.rb
rails_mini_profiler-0.1.3 db/migrate/20210621185018_create_rmp.rb
rails_mini_profiler-0.1.2 db/migrate/20210621185018_create_rmp.rb
rails_mini_profiler-0.1.1 db/migrate/20210621185018_create_rmp.rb