Sha256: f46c2afebfc9a4fa07d52f5f3205f10703f2754929bac0d8bfff1c31785416c3

Contents?: true

Size: 511 Bytes

Versions: 14

Compression:

Stored size: 511 Bytes

Contents

# frozen_string_literal: true

# Adding acd ansible playbooks db table
class AddAnsiblePlaybookId < ActiveRecord::Migration[5.2]
  def up
    add_column :app_definitions, :acd_ansible_playbook_id, :integer
    add_foreign_key 'app_definitions', 'acd_ansible_playbooks', :name => 'app_definitions_acd_ansible_playbooks_id_fk'
  end

  def down
    remove_foreign_key 'app_definitions', :name => 'app_definitions_acd_ansible_playbooks_id_fk'
    remove_column :app_definitions, :acd_ansible_playbook_id
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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