diff --git a/spec/db/migrate/issue2641_kb_color_change_limit_spec.rb b/spec/db/migrate/issue2641_kb_color_change_limit_spec.rb index 70a96bd96..35ca70b2a 100644 --- a/spec/db/migrate/issue2641_kb_color_change_limit_spec.rb +++ b/spec/db/migrate/issue2641_kb_color_change_limit_spec.rb @@ -1,6 +1,6 @@ require 'rails_helper' -RSpec.describe Issue2641KbColorChangeLimit, type: :db_migration do +RSpec.describe Issue2641KbColorChangeLimit, type: :db_migration, db_strategy: :reset do subject(:knowledge_base) { create(:knowledge_base) } before do diff --git a/spec/db/migrate/issue_2368_add_indices_to_histories_and_tickets_spec.rb b/spec/db/migrate/issue_2368_add_indices_to_histories_and_tickets_spec.rb index 4dca1e617..7e5303d9b 100644 --- a/spec/db/migrate/issue_2368_add_indices_to_histories_and_tickets_spec.rb +++ b/spec/db/migrate/issue_2368_add_indices_to_histories_and_tickets_spec.rb @@ -1,7 +1,6 @@ require 'rails_helper' -RSpec.describe Issue2368AddIndicesToHistoriesAndTickets, type: :db_migration do - self.use_transactional_tests = false # see comments on #without_index method +RSpec.describe Issue2368AddIndicesToHistoriesAndTickets, type: :db_migration, db_strategy: :reset do before { without_index(table, column: columns) } diff --git a/spec/db/migrate/issue_2867_footer_header_public_link_spec.rb b/spec/db/migrate/issue_2867_footer_header_public_link_spec.rb index 7898e732c..bb0244ef5 100644 --- a/spec/db/migrate/issue_2867_footer_header_public_link_spec.rb +++ b/spec/db/migrate/issue_2867_footer_header_public_link_spec.rb @@ -1,9 +1,8 @@ require 'rails_helper' -RSpec.describe Issue2867FooterHeaderPublicLink, type: :db_migration do - self.use_transactional_tests = false # see comments on #without_index method +RSpec.describe Issue2867FooterHeaderPublicLink, type: :db_migration, db_strategy: :reset do - before { without_column(table, column: column) } + before { without_column(table, column: column) } let(:table) { :knowledge_base_menu_items } let(:column) { :location }