From d36b22b1b4e19754514a2b0a91105b576d3c4553 Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Mon, 30 Jun 2025 14:54:56 +0200 Subject: [PATCH] Fix pending migration check in db/seeds.rb [SCI-12078] --- db/seeds.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/db/seeds.rb b/db/seeds.rb index 2cb73ae89..0289b7ec2 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,8 +1,6 @@ include UsersGenerator -if ActiveRecord::Base.connection.migration_context.needs_migration? - raise "There are pending migrations. Run 'rails db:migrate' first." -end +ActiveRecord::Migration.check_all_pending! MyModuleStatusFlow.ensure_default