`fly deploy` failing in a Rails App

hi! i have a Rails App and in the past i already make a few releases but now for some reason i get an error but i dont know why (i just know that is something with the migrations) this are the logs

fly deploy
==> Verifying app config
--> Verified app config
==> Building image
Remote builder fly-builder-wild-water-1416 ready
==> Creating build context
--> Creating build context done
==> Building image with Docker
--> docker host: 20.10.12 linux x86_64
Sending build context to Docker daemon  74.74kB
[+] Building 7.5s (21/21) FINISHED                                                                                                                                     
 => [internal] load remote build context                                                                                                                          0.0s
 => copy /context /                                                                                                                                               0.1s
 => resolve image config for docker.io/docker/dockerfile:experimental                                                                                             0.4s
 => CACHED docker-image://docker.io/docker/dockerfile:experimental@sha256:600e5c62eedff338b3f7a0850beb7c05866e0ef27b2d2e8c02aa468e78496ff5                        0.0s
 => [internal] load metadata for quay.io/evl.ms/fullstaq-ruby:3.0.3-jemalloc-slim                                                                                 0.2s
 => [base 1/4] FROM quay.io/evl.ms/fullstaq-ruby:3.0.3-jemalloc-slim@sha256:29ff0c61303cd26eb5a41324788981a2009734304eb10928a995ea26e409dd81                      0.0s
 => CACHED [base 2/4] RUN mkdir /app                                                                                                                              0.0s
 => CACHED [base 3/4] WORKDIR /app                                                                                                                                0.0s
 => CACHED [base 4/4] RUN mkdir -p tmp/pids                                                                                                                       0.0s
 => CACHED [stage-3 1/7] RUN --mount=type=cache,id=prod-apt-cache,sharing=locked,target=/var/cache/apt     --mount=type=cache,id=prod-apt-lib,sharing=locked,tar  0.0s
 => CACHED [build_deps 1/1] RUN --mount=type=cache,id=dev-apt-cache,sharing=locked,target=/var/cache/apt     --mount=type=cache,id=dev-apt-lib,sharing=locked,ta  0.0s
 => CACHED [gems 1/3] RUN gem update --system --no-document &&     gem install -N bundler -v 2.3.14                                                               0.0s
 => CACHED [gems 2/3] COPY Gemfile* ./                                                                                                                            0.0s
 => CACHED [gems 3/3] RUN bundle install &&  rm -rf vendor/bundle/ruby/*/cache                                                                                    0.0s
 => CACHED [stage-3 2/7] COPY --from=gems /app /app                                                                                                               0.0s
 => CACHED [stage-3 3/7] COPY --from=gems /usr/lib/fullstaq-ruby/versions /usr/lib/fullstaq-ruby/versions                                                         0.0s
 => CACHED [stage-3 4/7] COPY --from=gems /usr/local/bundle /usr/local/bundle                                                                                     0.0s
 => [stage-3 5/7] COPY . .                                                                                                                                        0.0s
 => [stage-3 6/7] RUN chmod +x /app/bin/* &&     sed -i 's/ruby.exe/ruby/' /app/bin/* &&     sed -i '/^#!/aDir.chdir File.expand_path("..", __dir__)' /app/bin/*  0.3s
 => [stage-3 7/7] RUN bin/rails fly:build                                                                                                                         5.9s
 => exporting to image                                                                                                                                            0.4s
 => => exporting layers                                                                                                                                           0.4s
 => => writing image sha256:f51946b833471a016a0a25e6334ffaae0ebe37b85d2cf98d843ef459c0071adb                                                                      0.0s 
 => => naming to registry.fly.io/labcontratacion:deployment-01GG5AAANNNY3PD3HSHRE9AM98                                                                            0.0s 
--> Building image done                                                                                                                                                
==> Pushing image to fly                                                                                                                                               
The push refers to repository [registry.fly.io/labcontratacion]
080cf3b856d0: Pushed 
1498cec26537: Pushed 
ffbe056b7546: Pushed 
164205315ad1: Layer already exists 
5a805d6338f1: Layer already exists 
243156658502: Layer already exists 
9f24b859063a: Layer already exists 
4959f1a45898: Layer already exists 
5f70bf18a086: Layer already exists 
1d9aaab0d0dd: Layer already exists 
41a2e453ca24: Layer already exists 
c1065d45b872: Layer already exists 
deployment-01GG5AAANNNY3PD3HSHRE9AM98: digest: sha256:0fa177d43b7ff2580b7b785920f9cd5c2cd726c0cb75ebe454759dc5baf7495c size: 2837
--> Pushing image done
image: registry.fly.io/labcontratacion:deployment-01GG5AAANNNY3PD3HSHRE9AM98
image size: 717 MB
==> Creating release
--> release v9 created

--> You can detach the terminal anytime without stopping the deployment
==> Release command detected: bin/rails fly:release

--> This release will not be available until the release command succeeds.
         Starting instance
         Configuring virtual machine
         Pulling container image
         Unpacking image
         Preparing kernel init
         Starting virtual machine
         Starting init (commit: 249766e)...
         Setting up swapspace version 1, size = 512 MiB (536866816 bytes)
         no label, UUID=57a29725-72f9-4616-9eaf-5039229ff4fe
         Preparing to run: `bin/rails fly:release` as root
         2022/10/24 15:39:24 listening on [fdaa:0:a479:a7b:2c00:ae98:455d:2]:22 (DNS: [fdaa::3]:53)
         Starting instance
         Configuring virtual machine
         Pulling container image
         Unpacking image
         Preparing kernel init
         Configuring firecracker
         Starting virtual machine
         Starting init (commit: 249766e)...
         Setting up swapspace version 1, size = 512 MiB (536866816 bytes)
         no label, UUID=57a29725-72f9-4616-9eaf-5039229ff4fe
         Preparing to run: `bin/rails fly:release` as root
         2022/10/24 15:39:24 listening on [fdaa:0:a479:a7b:2c00:ae98:455d:2]:22 (DNS: [fdaa::3]:53)
         rails aborted!
         StandardError: An error has occurred, this and all later migrations canceled:
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:47:in `block in execute'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/abstract_adapter.rb:765:in `block in log'
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:325:in `create_table'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:900:in `block in say_with_time'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/transactions.rb:209:in `transaction'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1282:in `block in migrate'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1432:in `block in with_advisory_lock'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1428:in `with_advisory_lock'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1117:in `up'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/tasks/database_tasks.rb:262:in `migrate'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/railties/databases.rake:92:in `block (2 levels) in <main>'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/rake_module.rb:59:in `with_application'
         /app/vendor/bundle/ruby/3.0.0/gems/railties-7.0.3.1/lib/rails/command.rb:51:in `invoke'
         /app/vendor/bundle/ruby/3.0.0/gems/railties-7.0.3.1/lib/rails/commands.rb:18:in `<main>'
         /app/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:870:in `exec_migration'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1360:in `block in execute_migration_in_transaction'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/abstract/database_statements.rb:316:in `transaction'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1333:in `each'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1282:in `block in migrate'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1432:in `block in with_advisory_lock'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1447:in `with_advisory_lock_connection'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `each'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
         ake-13.0.6/lib/rake/task.rb:199:in `synchronize'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
         /app/vendor/bundle/ruby/3.0.0/gems/railties-7.0.3.1/lib/rails/commands/rake/rake_command.rb:24:in `block (2 levels) in perform'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:48:in `block (2 levels) in execute'
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:46:in `execute'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:932:in `block in method_missing'
         ach'
/app/vendor/bund
         /app/db/migrate/20221003140803_create_previous_studies.rb:3:in `change'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1282:in `block in migrate'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1432:in `block in with_advisory_lock'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1447:in `with_advisory_lock_connection'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1428:in `with_advisory_lock'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/tasks/database_tasks.rb:262:in `migrate'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `invoke_prerequisites'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
         /app/vendor/bundle/ruby/3.0.0/gems/railties-7.0.3.1/lib/rails/commands/rake/rake_command.rb:24:in `block (2 levels) in perform'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
         /app/vendor/bundle/ruby/3.0.0/gems/railties-7.0.3.1/lib/rails/commands/rake/rake_command.rb:18:in `perform'
         /app/vendor/bundle/ruby/3.0.0/gems/railties-7.0.3.1/lib/rails/commands.rb:18:in `<main>'
         Tasks: TOP => fly:release => db:migrate
         == 20221003140803 CreatePreviousStudies: migrating ============================
         rails aborted!
         StandardError: An error has occurred, this and all later migrations canceled:
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:47:in `block in execute'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/abstract_adapter.rb:765:in `block in log'
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:325:in `create_table'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:900:in `block in say_with_time'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/transactions.rb:209:in `transaction'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1282:in `block in migrate'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1432:in `block in with_advisory_lock'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1428:in `with_advisory_lock'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1117:in `up'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/tasks/database_tasks.rb:262:in `migrate'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/railties/databases.rake:92:in `block (2 levels) in <main>'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/rake_module.rb:59:in `with_application'
         /app/vendor/bundle/ruby/3.0.0/gems/railties-7.0.3.1/lib/rails/command.rb:51:in `invoke'
         /app/vendor/bundle/ruby/3.0.0/gems/railties-7.0.3.1/lib/rails/commands.rb:18:in `<main>'
         /app/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:870:in `exec_migration'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1360:in `block in execute_migration_in_transaction'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/abstract/database_statements.rb:316:in `transaction'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1333:in `each'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1282:in `block in migrate'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1432:in `block in with_advisory_lock'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1447:in `with_advisory_lock_connection'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `each'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
         ake-13.0.6/lib/rake/task.rb:199:in `synchronize'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
         /app/vendor/bundle/ruby/3.0.0/gems/railties-7.0.3.1/lib/rails/commands/rake/rake_command.rb:24:in `block (2 levels) in perform'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:48:in `block (2 levels) in execute'
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:46:in `execute'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:932:in `block in method_missing'
         ach'
/app/vendor/bund
         /app/db/migrate/20221003140803_create_previous_studies.rb:3:in `change'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
         /app/vendor/bundle/ruby/3.0.0/gems/activesupport-7.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1282:in `block in migrate'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1432:in `block in with_advisory_lock'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1447:in `with_advisory_lock_connection'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/migration.rb:1428:in `with_advisory_lock'
         /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.3.1/lib/active_record/tasks/database_tasks.rb:262:in `migrate'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `invoke_prerequisites'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
         /app/vendor/bundle/ruby/3.0.0/gems/railties-7.0.3.1/lib/rails/commands/rake/rake_command.rb:24:in `block (2 levels) in perform'
         /app/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
         /app/vendor/bundle/ruby/3.0.0/gems/railties-7.0.3.1/lib/rails/commands/rake/rake_command.rb:18:in `perform'
         /app/vendor/bundle/ruby/3.0.0/gems/railties-7.0.3.1/lib/rails/commands.rb:18:in `<main>'
         Tasks: TOP => fly:release => db:migrate
         == 20221003140803 CreatePreviousStudies: migrating ============================
         -- create_table(:previous_studies)
         -- create_table(:previous_studies)
         Starting clean up.
         Starting clean up.
Error release command failed, deployment aborted

anyone know what could be?

This problem was solved