Sha256: e415b9cbe98d64ebc8d433ec4d1c58875b68c51c209d81e38ade5f4853d2c0ac

Contents?: true

Size: 351 Bytes

Versions: 44

Compression:

Stored size: 351 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :pghero_space_stats do |t|
      t.text :database
      t.text :schema
      t.text :relation
      t.integer :size, limit: 8
      t.timestamp :captured_at
    end

    add_index :pghero_space_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/space_stats.rb.tt
pghero-3.6.0 lib/generators/pghero/templates/space_stats.rb.tt
pghero-3.4.1 lib/generators/pghero/templates/space_stats.rb.tt
pghero-3.4.0 lib/generators/pghero/templates/space_stats.rb.tt
pghero-3.3.4 lib/generators/pghero/templates/space_stats.rb.tt
pghero-3.3.3 lib/generators/pghero/templates/space_stats.rb.tt
pghero-3.3.2 lib/generators/pghero/templates/space_stats.rb.tt
pghero-3.3.1 lib/generators/pghero/templates/space_stats.rb.tt
pghero-3.3.0 lib/generators/pghero/templates/space_stats.rb.tt
pghero-3.2.0 lib/generators/pghero/templates/space_stats.rb.tt
pghero-3.1.0 lib/generators/pghero/templates/space_stats.rb.tt
pghero-3.0.1 lib/generators/pghero/templates/space_stats.rb.tt
pghero-3.0.0 lib/generators/pghero/templates/space_stats.rb.tt
pghero-2.8.3 lib/generators/pghero/templates/space_stats.rb.tt
pghero-2.8.2 lib/generators/pghero/templates/space_stats.rb.tt
pghero-2.8.1 lib/generators/pghero/templates/space_stats.rb.tt
pghero-2.8.0 lib/generators/pghero/templates/space_stats.rb.tt
pghero-2.7.4 lib/generators/pghero/templates/space_stats.rb.tt
pghero_fork-2.7.3 lib/generators/pghero/templates/space_stats.rb.tt
pghero-2.7.3 lib/generators/pghero/templates/space_stats.rb.tt