Sha256: a1eba4dc2807cce03f24cc3fbbadd73c63f27f9eeb5fa1826a36a33a37445613

Contents?: true

Size: 305 Bytes

Versions: 140

Compression:

Stored size: 305 Bytes

Contents

class AddExecutionToInterface < ActiveRecord::Migration[4.2]
  def up
    add_column :nics, :execution, :boolean, :default => false

    Nic::Managed.reset_column_information
    Nic::Managed.where(primary: true).update_all(execution: true)
  end

  def down
    remove_column :nics, :execution
  end
end

Version data entries

140 entries across 140 versions & 1 rubygems

Version Path
foreman_remote_execution-11.1.3 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-10.1.2 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-12.0.0 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-10.1.1 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-11.1.1 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-11.1.0 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-10.1.0 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-8.3.3 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-8.3.2 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-11.0.0 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-10.0.7 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-8.3.1 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-10.0.6 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-10.0.5 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-10.0.4 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-10.0.3 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-10.0.2 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-10.0.1 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-10.0.0 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-8.3.0 db/migrate/20150903192731_add_execution_to_interface.rb