Sha256: 5746aa6c2f7c7dcaf6ecfa03eb1850df4d47b2038deeeaf726adc9c0b977b87e

Contents?: true

Size: 322 Bytes

Versions: 104

Compression:

Stored size: 322 Bytes

Contents

# frozen_string_literal: true

# Defines the relation between Host and AnsibleRole
class CreateJoinTableHostsAnsibleRoles < ActiveRecord::Migration[4.2]
  def change
    create_join_table :ansible_roles, :hosts do |t|
      t.index [:host_id, :ansible_role_id]
      t.index [:ansible_role_id, :host_id]
    end
  end
end

Version data entries

104 entries across 104 versions & 1 rubygems

Version Path
foreman_ansible-15.0.2 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-15.0.1 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-15.0.0 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-14.2.2 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-14.2.1 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-13.0.7 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-14.2.0 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-14.1.1 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-14.1.0 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-13.0.5 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-14.0.0 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-13.0.4 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-13.0.3 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-13.0.2 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-13.0.1 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-13.0.0 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-12.0.7 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-10.4.4 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-7.1.8 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-12.0.6 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb