Sha256: 6a614bfd084ae5dcc637410e0b61e77827da6b6520c26179d726de9007bc3ed4
Contents?: true
Size: 285 Bytes
Versions: 56
Compression:
Stored size: 285 Bytes
Contents
class RemoveDiscoveryAttributeSetsFromManagedHosts < ActiveRecord::Migration[4.2] def up DiscoveryAttributeSet.where(:id => DiscoveryAttributeSet.joins(:host).where(:'hosts.managed' => true).pluck("#{DiscoveryAttributeSet.table_name}.id")).delete_all end def down end end
Version data entries
56 entries across 56 versions & 1 rubygems