diff options
Diffstat (limited to 'app/models/postgresql/detached_partition.rb')
-rw-r--r-- | app/models/postgresql/detached_partition.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/postgresql/detached_partition.rb b/app/models/postgresql/detached_partition.rb index 12b48895e0c..b0dd52c9657 100644 --- a/app/models/postgresql/detached_partition.rb +++ b/app/models/postgresql/detached_partition.rb @@ -3,5 +3,9 @@ module Postgresql class DetachedPartition < ::Gitlab::Database::SharedModel scope :ready_to_drop, -> { where('drop_after < ?', Time.current) } + + def fully_qualified_table_name + "#{Gitlab::Database::DYNAMIC_PARTITIONS_SCHEMA}.#{table_name}" + end end end |