Sha256: b689057f2d838a045fb859d5f46380f39fbf8176222b2d2e5e0a28b35aa6232b

Contents?: true

Size: 286 Bytes

Versions: 14

Compression:

Stored size: 286 Bytes

Contents

# Defines the relation between Host and AnsibleRole
class CreateJoinTableHostsAnsibleRoles < ActiveRecord::Migration
  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

14 entries across 14 versions & 1 rubygems

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