|
|
|
@ -18,7 +18,7 @@ class AddUniqueIndexOnPreviewCardsStatuses < ActiveRecord::Migration[6.1]
|
|
|
|
|
def supports_concurrent_reindex?
|
|
|
|
|
@supports_concurrent_reindex ||= begin
|
|
|
|
|
version = select_one("SELECT current_setting('server_version_num') AS v")['v'].to_i
|
|
|
|
|
version >= 12_000
|
|
|
|
|
version >= 120_000
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|