Sha256: 1c1c66c136a7aa772fe527decc1a9e1fe1ed5824a15c1f855afffa8e6c704d49
Contents?: true
Size: 345 Bytes
Versions: 102
Compression:
Stored size: 345 Bytes
Contents
class AddImportedAttrToAnsibleVariables < ActiveRecord::Migration[5.2] def up add_column :lookup_keys, :imported, :boolean AnsibleVariable.find_in_batches do |batch| batch.map do |variable| variable.update_attribute :imported, true end end end def down remove_column :lookup_keys, :imported end end
Version data entries
102 entries across 102 versions & 1 rubygems