Skip to content

Commit d730a85

Browse files
authored
Merge pull request #189 from cockroachdb/disable-partitioned-indexes
Set supports_partitioned_indexes to false
2 parents ac7edda + 509dc84 commit d730a85

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/active_record/connection_adapters/cockroachdb_adapter.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ def supports_string_to_array_coercion?
173173
@crdb_version >= 202
174174
end
175175

176+
def supports_partitioned_indexes?
177+
false
178+
end
179+
176180
# This is hardcoded to 63 (as previously was in ActiveRecord 5.0) to aid in
177181
# migration from PostgreSQL to CockroachDB. In practice, this limitation
178182
# is arbitrary since CockroachDB supports index name lengths and table alias

0 commit comments

Comments
 (0)