Sha256: a695d5f34578e128e5b5d6d2aa84fad476e5f49586c4747dd99b48f13c716c10

Contents?: true

Size: 383 Bytes

Versions: 56

Compression:

Stored size: 383 Bytes

Contents

class RenameLockTemplateSetting < ActiveRecord::Migration[4.2]
  def change
    reversible do |dir|
      dir.up do
        setting = Setting.find_by_name("discovery_lock_template")
        setting.destroy if setting
      end
      dir.down do
        setting = Setting.find_by_name("discovery_pxelinux_lock_template")
        setting.destroy if setting
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
foreman_discovery-25.0.0 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-24.0.2 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-23.0.2 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-24.0.1 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-24.0.0 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-23.0.1 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-23.0.0 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-22.0.4 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-21.0.5 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-22.0.2 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-21.0.4 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-21.0.3 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-21.0.2 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-19.0.5 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-19.0.4 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-21.0.1 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-19.0.3 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-21.0.0 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-19.0.2 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-20.0.1 db/migrate/20160805104605_rename_lock_template_setting.rb