Skip to content

Commit

Permalink
Make execute_sql work.
Browse files Browse the repository at this point in the history
  • Loading branch information
ba1ash committed Feb 28, 2024
1 parent e054adb commit f2ffac9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/migrate/20201125121949_remove_renamed_cron_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#++

class RemoveRenamedCronJob < ActiveRecord::Migration[6.0]
include ::Migration::Utils

def up
# The job has been renamed to JobStatus::Cron::ClearOldJobStatusJob
# the new job will be added on restarting the application but the old will still be in the database
Expand Down
2 changes: 2 additions & 0 deletions db/migrate/20220804112533_remove_notification_cleanup_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#++

class RemoveNotificationCleanupJob < ActiveRecord::Migration[7.0]
include ::Migration::Utils

def up
execute_sql("DELETE FROM delayed_jobs WHERE handler LIKE '%job_class: Notifications::CleanupJob%'")
Setting
Expand Down
2 changes: 2 additions & 0 deletions db/migrate/20230105073117_remove_renamed_date_alert_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#++

class RemoveRenamedDateAlertJob < ActiveRecord::Migration[6.0]
include ::Migration::Utils

def up
# The job has been renamed to Notifications::ScheduleDateAlertsNotificationsJob.
# The new job will be added on restarting the application.
Expand Down

0 comments on commit f2ffac9

Please sign in to comment.