Sha256: 2c119f6e4ee7a338b6a40eee3309f029c93e714284a8c96a30f1d156d1f8713e

Contents?: true

Size: 327 Bytes

Versions: 10

Compression:

Stored size: 327 Bytes

Contents

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

10 entries across 10 versions & 1 rubygems

Version Path
pghero-1.6.5 lib/generators/pghero/templates/space_stats.rb
pghero-1.6.4 lib/generators/pghero/templates/space_stats.rb
pghero-1.6.3 lib/generators/pghero/templates/space_stats.rb
pghero-1.6.2 lib/generators/pghero/templates/space_stats.rb
pghero-1.6.1 lib/generators/pghero/templates/space_stats.rb
pghero-1.6.0 lib/generators/pghero/templates/space_stats.rb
pghero-1.5.3 lib/generators/pghero/templates/space_stats.rb
pghero-1.5.2 lib/generators/pghero/templates/space_stats.rb
pghero-1.5.1 lib/generators/pghero/templates/space_stats.rb
pghero-1.5.0 lib/generators/pghero/templates/space_stats.rb