From 1eebc2f1e1f20303ed825f6b11c3fa9fef849a0e Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Tue, 15 Mar 2022 16:08:13 +0100 Subject: [PATCH] specs: make test migrations safer This will avoid strong_migrations to flag them as dangerous. --- spec/lib/database/migration_helpers_spec.rb | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/spec/lib/database/migration_helpers_spec.rb b/spec/lib/database/migration_helpers_spec.rb index 1ca896cfb..033b4b41a 100644 --- a/spec/lib/database/migration_helpers_spec.rb +++ b/spec/lib/database/migration_helpers_spec.rb @@ -5,11 +5,7 @@ describe Database::MigrationHelpers do before(:all) do ActiveRecord::Migration.suppress_messages do - ActiveRecord::Migration.create_table "test_labels", force: true do |t| - t.string :label - t.integer :user_id - end - ActiveRecord::Migration.create_table "test_labels", force: true do |t| + ActiveRecord::Migration.create_table "test_labels" do |t| t.string :label t.integer :user_id end @@ -103,13 +99,13 @@ describe Database::MigrationHelpers do before(:all) do ActiveRecord::Migration.suppress_messages do - ActiveRecord::Migration.create_table "test_physicians", force: true do |t| + ActiveRecord::Migration.create_table "test_physicians" do |t| t.string :name end - ActiveRecord::Migration.create_table "test_patients", force: true do |t| + ActiveRecord::Migration.create_table "test_patients" do |t| t.string :name end - ActiveRecord::Migration.create_table "test_appointments", id: false, force: true do |t| + ActiveRecord::Migration.create_table "test_appointments", id: false do |t| t.integer :test_physician_id t.integer :test_patient_id t.datetime :datetime