mirror of
https://github.com/postalserver/postal.git
synced 2026-10-18 18:26:06 +00:00
chore(rails): Upgrade to Rails 8.1.4
This commit is contained in:
@@ -15,7 +15,7 @@ class MigrationWaiter
|
||||
def wait
|
||||
attempts_remaining = ATTEMPTS
|
||||
loop do
|
||||
pending_migrations = ActiveRecord::Base.connection.migration_context.open.pending_migrations.size
|
||||
pending_migrations = ActiveRecord::Base.connection_pool.migration_context.open.pending_migrations.size
|
||||
if pending_migrations.zero?
|
||||
Postal.logger.info "no pending migrations, continuing"
|
||||
return
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This rake task was added by annotate_rb gem.
|
||||
|
||||
# Can set `ANNOTATERB_SKIP_ON_DB_TASKS` to be anything to skip this
|
||||
if Rails.env.development? && ENV["ANNOTATERB_SKIP_ON_DB_TASKS"].nil?
|
||||
require "annotate_rb"
|
||||
|
||||
# Can modify the config path here if needed - by default, it's .annotaterb.yml in the root of the project
|
||||
# AnnotateRb::ConfigFinder.config_path = ""
|
||||
AnnotateRb::Core.load_rake_tasks
|
||||
end
|
||||
Reference in New Issue
Block a user