Sha256: 523f223647f77c4d601edbb10a599cbe67acec5ef8123143472af5ac8cc38f3d

Contents?: true

Size: 325 Bytes

Versions: 3

Compression:

Stored size: 325 Bytes

Contents

class CreateScaptimonyAuditableHosts < ActiveRecord::Migration
  def change
    create_table :scaptimony_auditable_hosts, :id => false do |t|
      t.references :asset, :null => false
      t.references :host, :null => false
    end
    add_index :scaptimony_auditable_hosts, [:asset_id, :host_id], :unique => true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_openscap-0.2.1 db/migrate/20141017172055_create_scaptimony_auditable_hosts.rb
foreman_openscap-0.2.0 db/migrate/20141017172055_create_scaptimony_auditable_hosts.rb
foreman_openscap-0.1.0 db/migrate/20141017172055_create_scaptimony_auditable_hosts.rb