Skip to content

Commit 327c7d6

Browse files
committed
[test]: exclude two PG tests on PG < 9.5
These use ADD INDEX IF NOT EXISTS which is only supporter in 9.5+
1 parent cb3b34c commit 327c7d6

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
if ActiveRecord::Base.connection.database_version < 90500
2+
exclude :test_add_index_which_already_exists_does_not_raise_error_with_option, 'ADD INDEX IF NOT EXISTS is PG >= 9.5'
3+
exclude :test_add_index_with_if_not_exists_matches_exact_index, 'ADD INDEX IF NOT EXISTS is PG >= 9.5'
4+
end
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
if ActiveRecord::Base.connection.database_version < 90500
2+
exclude :test_create_table_with_indexes_and_if_not_exists_true, 'ADD INDEX IF NOT EXISTS is PG >= 9.5'
3+
end

0 commit comments

Comments
 (0)