Sha256: 5cf513a55b3d7810006483c4089304498a004e4014e32992d512e4bd4a0c3e4a

Contents?: true

Size: 663 Bytes

Versions: 14

Compression:

Stored size: 663 Bytes

Contents

# frozen_string_literal: true

# Adding acd_foreman_hosts db table
class CreateForemanHosts < ActiveRecord::Migration[6.0]
  def up
    create_table :foreman_hosts do |t|
      t.string :hostname, :default => '', :null => false, :limit => 255, :unique => true
      t.column :app_instance_id, :integer, :null => false
      t.column :host_id, :integer
      t.string :service
      t.string :description
      t.text :foremanParameters
      t.text :ansibleParameters

      t.timestamps :null => false
    end
    add_foreign_key :foreman_hosts, :app_instances
    add_foreign_key :foreman_hosts, :hosts
  end

  def down
    drop_table :foreman_hosts
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
foreman_acd-0.11.0 db/migrate/20210202141658_create_foreman_hosts.rb
foreman_acd-0.10.0 db/migrate/20210202141658_create_foreman_hosts.rb
foreman_acd-0.9.7 db/migrate/20210202141658_create_foreman_hosts.rb
foreman_acd-0.9.5 db/migrate/20210202141658_create_foreman_hosts.rb
foreman_acd-0.9.4 db/migrate/20210202141658_create_foreman_hosts.rb
foreman_acd-0.9.3 db/migrate/20210202141658_create_foreman_hosts.rb
foreman_acd-0.9.2.3 db/migrate/20210202141658_create_foreman_hosts.rb
foreman_acd-0.9.2.2 db/migrate/20210202141658_create_foreman_hosts.rb
foreman_acd-0.9.2.1 db/migrate/20210202141658_create_foreman_hosts.rb
foreman_acd-0.9.2 db/migrate/20210202141658_create_foreman_hosts.rb
foreman_acd-0.9.1 db/migrate/20210202141658_create_foreman_hosts.rb
foreman_acd-0.9.0 db/migrate/20210202141658_create_foreman_hosts.rb
foreman_acd-0.7.0 db/migrate/20210202141658_create_foreman_hosts.rb
foreman_acd-0.6.0 db/migrate/20210202141658_create_foreman_hosts.rb