Sha256: 1f3bef708e59623ea0f31f6c1a1db070216fddf7d7178614ce14c77c53bd72c1

Contents?: true

Size: 291 Bytes

Versions: 23

Compression:

Stored size: 291 Bytes

Contents

# 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

23 entries across 23 versions & 1 rubygems

Version Path
foreman_ansible-2.2.14 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-2.2.13 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-2.2.12 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-2.2.11 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-2.2.10 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-2.2.9 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-2.2.8 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-2.2.7 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-2.2.6 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-2.2.5 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-2.2.4 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-2.2.3 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-2.2.2 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-2.2.1 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-2.2.0 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-2.1.2 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-2.1.1 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-2.0.4 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-2.0.3 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb
foreman_ansible-2.0.2 db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb