Skip to content

Commit

Permalink
Fix hard-coded and duplicated table_name (#958)
Browse files Browse the repository at this point in the history
  • Loading branch information
gap777 committed May 19, 2023
1 parent fc9e28b commit bff8a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/good_job/base_execution.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def coalesce_scheduled_at_created_at
end

def discrete_support?
if connection.table_exists?('good_job_executions')
if connection.table_exists?(DiscreteExecution.table_name)
true
else
migration_pending_warning!
Expand Down

0 comments on commit bff8a7e

Please sign in to comment.