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-2.0.9 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-2.0.8 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-3.0.3 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-3.0.2 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-2.0.7 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-3.0.1 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-3.0.0 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-2.0.6 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-2.0.5 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-2.0.4 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-2.0.3 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-2.0.2 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-2.0.1 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-2.0.0 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-1.8.4 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-1.8.3 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-1.8.2 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-1.8.1 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-1.8.0 db/migrate/20150903192731_add_execution_to_interface.rb
foreman_remote_execution-1.7.1 db/migrate/20150903192731_add_execution_to_interface.rb