-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
23 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
exclude :test_legacy_change_column_with_null_executes_update, "Skipping until we can triage further. See https://github.com/cockroachdb/activerecord-cockroachdb-adapter/issues/48" | ||
exclude :test_legacy_add_foreign_key_with_deferrable_true, "CRDB does not support DEFERRABLE constraints" | ||
exclude :test_disable_extension_on_7_0, "CRDB does not support enabling/disabling extensions." | ||
# CRDB does not support ALTER COLUMN TYPE inside a transaction | ||
BaseCompatibilityTest.descendants.each { _1.use_transactional_tests = false } | ||
|
||
exclude :test_add_index_errors_on_too_long_name_7_0, "The max length in CRDB is 128, not 64." | ||
exclude :test_create_table_add_index_errors_on_too_long_name_7_0, "The max length in CRDB is 128, not 64." | ||
# exclude :test_add_index_errors_on_too_long_name_7_0, "The max length in CRDB is 128, not 64." | ||
# exclude :test_create_table_add_index_errors_on_too_long_name_7_0, "The max length in CRDB is 128, not 64." | ||
|
||
require "support/copy_cat" | ||
|
||
CopyCat.copy_methods(self, self, | ||
:test_add_index_errors_on_too_long_name_7_0, | ||
:test_create_table_add_index_errors_on_too_long_name_7_0 | ||
) do | ||
def on_sym(node) | ||
return unless node.children[0] == :very_long_column_name_to_test_with | ||
|
||
insert_after(node.loc.expression, "_and_actually_way_longer_because_cockroach_is_in_the_128_game") | ||
end | ||
end |