Sha256: ac03cbc56830d9341df82d88224f07bea7b52b88b60d966cfed1213ada98d121

Contents?: true

Size: 695 Bytes

Versions: 26

Compression:

Stored size: 695 Bytes

Contents

class CreateHostgroupOvalFacet < ActiveRecord::Migration[6.0]
  def change
    create_table :foreman_openscap_hostgroup_oval_facets do |t|
      t.references 'hostgroup', :null => false
    end

    add_index :foreman_openscap_hostgroup_oval_facets, [:hostgroup_id], :unique => true, :name => :foreman_openscap_hostgroup_oval_facets_hostgroup_id

    create_table :foreman_openscap_hostgroup_oval_facet_oval_policies do |t|
      t.references 'oval_policy', :null => false, :index => { :name => 'index_hg_oval_facet_oval_policies_on_oval_policy_id'}
      t.references 'oval_facet', :null => false, :index => { :name => 'index_hg_oval_facet_oval_policies_on_hg_oval_facet_id'}
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
foreman_openscap-5.1.0 db/migrate/20201021084109_create_hostgroup_oval_facet.rb
foreman_openscap-5.0.0 db/migrate/20201021084109_create_hostgroup_oval_facet.rb
foreman_openscap-4.3.3 db/migrate/20201021084109_create_hostgroup_oval_facet.rb
foreman_openscap-4.3.2 db/migrate/20201021084109_create_hostgroup_oval_facet.rb
foreman_openscap-4.3.1 db/migrate/20201021084109_create_hostgroup_oval_facet.rb
foreman_openscap-4.3.0 db/migrate/20201021084109_create_hostgroup_oval_facet.rb