* Add PGHero for more insights into the DB Andrew Kane's Ruby gems will continue being added until morale improves! * Add linux x86_64 protobuf * Fix discrepancy between Gemfile and Gemfile.lock No idea how this happened, but it happened when merging `main` back into this branch. Co-authored-by: Dan Uber <dan@forem.com>
15 lines
387 B
Ruby
15 lines
387 B
Ruby
class CreatePgheroQueryStats < ActiveRecord::Migration[6.1]
|
|
def change
|
|
create_table :pghero_query_stats do |t|
|
|
t.text :database
|
|
t.text :user
|
|
t.text :query
|
|
t.integer :query_hash, limit: 8
|
|
t.float :total_time
|
|
t.integer :calls, limit: 8
|
|
t.timestamp :captured_at
|
|
end
|
|
|
|
add_index :pghero_query_stats, [:database, :captured_at]
|
|
end
|
|
end
|