Sha256: 7dfa80b6fbefb9b847a1826c31ad7ff79ba2fa2b3ae9d0bb95798c1f88eee02d

Contents?: true

Size: 411 Bytes

Versions: 44

Compression:

Stored size: 411 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %>
  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

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
pghero-3.6.1 lib/generators/pghero/templates/query_stats.rb.tt
pghero-3.6.0 lib/generators/pghero/templates/query_stats.rb.tt
pghero-3.4.1 lib/generators/pghero/templates/query_stats.rb.tt
pghero-3.4.0 lib/generators/pghero/templates/query_stats.rb.tt
pghero-3.3.4 lib/generators/pghero/templates/query_stats.rb.tt
pghero-3.3.3 lib/generators/pghero/templates/query_stats.rb.tt
pghero-3.3.2 lib/generators/pghero/templates/query_stats.rb.tt
pghero-3.3.1 lib/generators/pghero/templates/query_stats.rb.tt
pghero-3.3.0 lib/generators/pghero/templates/query_stats.rb.tt
pghero-3.2.0 lib/generators/pghero/templates/query_stats.rb.tt
pghero-3.1.0 lib/generators/pghero/templates/query_stats.rb.tt
pghero-3.0.1 lib/generators/pghero/templates/query_stats.rb.tt
pghero-3.0.0 lib/generators/pghero/templates/query_stats.rb.tt
pghero-2.8.3 lib/generators/pghero/templates/query_stats.rb.tt
pghero-2.8.2 lib/generators/pghero/templates/query_stats.rb.tt
pghero-2.8.1 lib/generators/pghero/templates/query_stats.rb.tt
pghero-2.8.0 lib/generators/pghero/templates/query_stats.rb.tt
pghero-2.7.4 lib/generators/pghero/templates/query_stats.rb.tt
pghero_fork-2.7.3 lib/generators/pghero/templates/query_stats.rb.tt
pghero-2.7.3 lib/generators/pghero/templates/query_stats.rb.tt