Sha256: c15e390e6ed357332db83ed1f3d43f9a2283fd66f7af45a0fc8dd9a71ae47d09

Contents?: true

Size: 330 Bytes

Versions: 10

Compression:

Stored size: 330 Bytes

Contents

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

10 entries across 10 versions & 1 rubygems

Version Path
pghero-1.2.4 lib/generators/pghero/templates/query_stats.rb
pghero-1.2.3 lib/generators/pghero/templates/query_stats.rb
pghero-1.2.2 lib/generators/pghero/templates/query_stats.rb
pghero-1.2.1 lib/generators/pghero/templates/query_stats.rb
pghero-1.2.0 lib/generators/pghero/templates/query_stats.rb
pghero-1.1.4 lib/generators/pghero/templates/query_stats.rb
pghero-1.1.3 lib/generators/pghero/templates/query_stats.rb
pghero-1.1.2 lib/generators/pghero/templates/query_stats.rb
pghero-1.1.1 lib/generators/pghero/templates/query_stats.rb
pghero-1.1.0 lib/generators/pghero/templates/query_stats.rb