Sha256: c696236f05ac53aeec0948e3aa44b0d6f162a8c91c6c7c5029ee498d16f2a505

Contents?: true

Size: 368 Bytes

Versions: 9

Compression:

Stored size: 368 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration
  def change
    create_table :pghero_query_stats do |t|
      t.text :database
      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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pghero-1.5.2 lib/generators/pghero/templates/query_stats.rb
pghero-1.5.1 lib/generators/pghero/templates/query_stats.rb
pghero-1.5.0 lib/generators/pghero/templates/query_stats.rb
pghero-1.4.2 lib/generators/pghero/templates/query_stats.rb
pghero-1.4.1 lib/generators/pghero/templates/query_stats.rb
pghero-1.4.0 lib/generators/pghero/templates/query_stats.rb
pghero-1.3.2 lib/generators/pghero/templates/query_stats.rb
pghero-1.3.1 lib/generators/pghero/templates/query_stats.rb
pghero-1.3.0 lib/generators/pghero/templates/query_stats.rb