Sha256: 32f1b6e9f2da9398c9f25b441b3c54f0894333e2eac6f75ed2a57929d19e5e6f

Contents?: true

Size: 527 Bytes

Versions: 79

Compression:

Stored size: 527 Bytes

Contents

# frozen_string_literal: true

# Defines the relation between Hostgroup and AnsibleRole
class CreateJoinTableHostgroupAnsibleRoles < ActiveRecord::Migration[4.2]
  def change
    create_join_table :hostgroup, :ansible_roles, :table_name => 'hostgroup_ansible_roles' do |t|
      t.index [:hostgroup_id, :ansible_role_id], :name => 'index_ansible_roles_hostgroup_on_hostgroup_id_and_role_id'
      t.index [:ansible_role_id, :hostgroup_id], :name => 'index_ansible_roles_hostgroup_on_role_id_and_hostgroup_id'
    end
  end
end

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
foreman_ansible-10.2.0 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-10.1.0 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-10.0.1 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-10.0.0 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-7.1.4 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-9.0.1 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-7.1.3 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-9.0.0 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-7.1.2 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-7.1.1 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-8.0.1 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-8.0.0 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-7.0.4 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-7.1.0 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-7.0.3 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-7.0.2 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-7.0.1 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-7.0.0 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-6.3.4 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-6.3.3 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb