Sha256: 9a75668e20a34bf788af2ebb4badd895d32b1be70ff03b3615cd0f343d9a6258
Contents?: true
Size: 442 Bytes
Versions: 1
Compression:
Stored size: 442 Bytes
Contents
class AddExecutionToInterface < ActiveRecord::Migration[4.2] class FakeNic < ApplicationRecord self.table_name = 'nics' def type Nic::Managed end end def up add_column :nics, :execution, :boolean, :default => false FakeNic.reset_column_information FakeNic.all.each do |nic| nic.update_column(:execution, true) if nic.primary end end def down remove_column :nics, :execution end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_remote_execution-1.4.2 | db/migrate/20150903192731_add_execution_to_interface.rb |