-
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
5 changed files
with
37 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# # frozen_string_literal: true | ||
|
||
# require "cases/helper_cockroachdb" | ||
# require "support/copy_cat" | ||
|
||
# module ActiveRecord | ||
# module CockroachDB | ||
# class Migration | ||
# class CompatibilityTest < ActiveRecord::Migration::CompatibilityTest | ||
# CopyCat.copy_methods(self, ActiveRecord::Migration::CompatibilityTest, | ||
# :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 | ||
# end | ||
# end | ||
# end | ||
# end |
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
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,6 +1,9 @@ | ||
exclude :test_text_columns_are_limitless_the_upper_limit_is_one_GB, "Skipping until we can triage further. See https://github.com/cockroachdb/activerecord-cockroachdb-adapter/issues/48" | ||
exclude :test_data_type_of_oid_types, "Skipping until we can triage further. See https://github.com/cockroachdb/activerecord-cockroachdb-adapter/issues/48" | ||
exclude :test_update_oid, "Skipping until we can triage further. See https://github.com/cockroachdb/activerecord-cockroachdb-adapter/issues/48" | ||
exclude :test_data_type_of_time_types, "Skipping until we can triage further. See https://github.com/cockroachdb/activerecord-cockroachdb-adapter/issues/48" | ||
exclude :test_oid_values, "Skipping until we can triage further. See https://github.com/cockroachdb/activerecord-cockroachdb-adapter/issues/48" | ||
exclude :test_time_values, "Skipping until we can triage further. See https://github.com/cockroachdb/activerecord-cockroachdb-adapter/issues/48" | ||
|
||
ago_msg = "'ago' is not supported in CRDB's interval parsing. Test ignored. See #340" | ||
exclude :test_text_columns_are_limitless_the_upper_limit_is_one_GB, ago_msg | ||
exclude :test_data_type_of_oid_types, ago_msg | ||
exclude :test_update_oid, ago_msg | ||
exclude :test_data_type_of_time_types, ago_msg | ||
exclude :test_oid_values, ago_msg | ||
exclude :test_time_values, ago_msg | ||
exclude :test_update_large_time_in_seconds, ago_msg |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
instance_methods.grep(/\Atest_/).each do |m| | ||
exclude m, "CockroachDB doesn't support 'SET CONSTRAINTS ...'" | ||
end |