Skip to content

Commit

Permalink
Removing unnecessary frozen_string_literal statement, removing unnece…
Browse files Browse the repository at this point in the history
…ssary template update section, updating rails migration version to 7.0
  • Loading branch information
bnerickson committed Jan 3, 2025
1 parent 7ed7e40 commit ec95d8b
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# frozen_string_literal: true

class AddAnsibleCheckModeToTemplates < ActiveRecord::Migration[6.0]
class AddAnsibleCheckModeToTemplates < ActiveRecord::Migration[7.0]
def change
add_column :templates, :ansible_check_mode, :boolean, default: false
RemoteExecutionFeature.where(label: 'ansible_run_host').each do |rex_feature|
Template.where(id: rex_feature.job_template_id).update_all(ansible_check_mode: false)
end
end
end

0 comments on commit ec95d8b

Please sign in to comment.