Sha256: a89be9c01c7da098809bf173f1328bf34570fe2de9ccb48207ce449233ff48ac

Contents?: true

Size: 528 Bytes

Versions: 14

Compression:

Stored size: 528 Bytes

Contents

# Defines the relation between Hostgroup and AnsibleRole
# rubocop:disable Metrics/LineLength
class CreateJoinTableHostgroupAnsibleRoles < ActiveRecord::Migration
  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

14 entries across 14 versions & 1 rubygems

Version Path
foreman_ansible-1.5.2 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-1.5.1 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-1.5.0 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-1.4.6 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-1.4.5 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-1.4.3 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-1.4.2 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-1.4.1 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-1.4.0 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-1.3.1 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-1.3.0 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-1.2.1 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-1.2 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb
foreman_ansible-1.1 db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb