Sha256: 1f25548c1dd63493c5d041cc0226b9142935083d55f20aa04f15f738a5f87a17

Contents?: true

Size: 440 Bytes

Versions: 2

Compression:

Stored size: 440 Bytes

Contents

# This is an internal class that is not meant to be used directly
class PgHaMigrations::PartmanConfig < ActiveRecord::Base
  self.primary_key = :parent_table

  # This method is called by unsafe_partman_update_config to set the fully
  # qualified table name, as partman is often installed in a schema that
  # is not included the application's search path
  def self.schema=(schema)
    self.table_name = "#{schema}.part_config"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pg_ha_migrations-1.8.0 lib/pg_ha_migrations/partman_config.rb
pg_ha_migrations-1.7.0 lib/pg_ha_migrations/partman_config.rb