Sha256: ad76e37ce0da0188e16503d5d5e8829b9dd73d51b53d717e2e728c50563cac88
Contents?: true
Size: 460 Bytes
Versions: 53
Compression:
Stored size: 460 Bytes
Contents
class AddDeploymentOptionToPolicy < ActiveRecord::Migration[5.2] def up add_column :foreman_openscap_policies, :deploy_by, :string ForemanOpenscap::Policy.unscoped.in_batches do |batch| batch.map do |policy| policy.update_column(:deploy_by, 'puppet') end end change_column :foreman_openscap_policies, :deploy_by, :string, :null => false end def down remove_column :foreman_openscap_policies, :deploy_by end end
Version data entries
53 entries across 53 versions & 1 rubygems