Sha256: 1ac6de4271f98e48f48fd3dfcf8b0f25710ed8b37424eeaee1b9fbbafdee838d

Contents?: true

Size: 192 Bytes

Versions: 5

Compression:

Stored size: 192 Bytes

Contents

class AddEnabledToHosts < ActiveRecord::Migration
  def self.up
    add_column :hosts, :enabled, :boolean, :default => true
  end

  def self.down
    remove_column :hosts, :enabled
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/db/migrate/20100823181036_add_enabled_to_hosts.rb
foreman_discovery-1.0.0.rc4 test/foreman_app/db/migrate/20100823181036_add_enabled_to_hosts.rb
foreman_discovery-1.0.0.rc3 test/foreman_app/db/migrate/20100823181036_add_enabled_to_hosts.rb
foreman_discovery-1.0.0.rc2 test/foreman_app/db/migrate/20100823181036_add_enabled_to_hosts.rb
foreman_discovery-1.0.0.rc1 test/foreman_app/db/migrate/20100823181036_add_enabled_to_hosts.rb