diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index eaec2198dc8ac8bc91315b5518064c2417467e98..53ccaa4fd6791833f2adcbaf028d579031bc2a39 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -44,3 +44,5 @@ RSpec.configure do |config|
     TestEnv.init
   end
 end
+
+ActiveRecord::Migration.maintain_test_schema!