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-16.1.2 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-16.2.0 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-16.1.0 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-16.0.1 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-16.0.0 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-15.1.0 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-15.0.2 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-15.0.1 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-15.0.0 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-14.0.1 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-14.0.0 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-13.0.1 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-12.0.2 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-12.0.1 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-12.0.0 db/migrate/20160805104605_rename_lock_template_setting.rb
foreman_discovery-11.0.0 db/migrate/20160805104605_rename_lock_template_setting.rb