Sha256: ab3667a10319a88551371ee8aa1e5a4ba86ebb7c9aff089c7fbb9a23bca78e6e

Contents?: true

Size: 360 Bytes

Versions: 16

Compression:

Stored size: 360 Bytes

Contents

class CreateScaptimonyAssetsPolicies < ActiveRecord::Migration
  def change
    create_table :scaptimony_assets_policies, :id => false do |t|
      t.references :asset, :index => true, :null => false
      t.references :policy, :index => true, :null => false
    end
    add_index :scaptimony_assets_policies, %i(asset_id policy_id), :unique => true
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
foreman_openscap-0.7.13 db/migrate/20141206211151_create_scaptimony_assets_policies.rb
foreman_openscap-0.7.12 db/migrate/20141206211151_create_scaptimony_assets_policies.rb
foreman_openscap-0.7.11 db/migrate/20141206211151_create_scaptimony_assets_policies.rb
foreman_openscap-0.7.10 db/migrate/20141206211151_create_scaptimony_assets_policies.rb
foreman_openscap-0.8.3 db/migrate/20141206211151_create_scaptimony_assets_policies.rb
foreman_openscap-0.7.9 db/migrate/20141206211151_create_scaptimony_assets_policies.rb
foreman_openscap-0.7.8 db/migrate/20141206211151_create_scaptimony_assets_policies.rb
foreman_openscap-0.7.7 db/migrate/20141206211151_create_scaptimony_assets_policies.rb
foreman_openscap-0.8.2 db/migrate/20141206211151_create_scaptimony_assets_policies.rb
foreman_openscap-0.7.6 db/migrate/20141206211151_create_scaptimony_assets_policies.rb
foreman_openscap-0.8.1 db/migrate/20141206211151_create_scaptimony_assets_policies.rb
foreman_openscap-0.7.5 db/migrate/20141206211151_create_scaptimony_assets_policies.rb
foreman_openscap-0.8.0 db/migrate/20141206211151_create_scaptimony_assets_policies.rb
foreman_openscap-0.7.4 db/migrate/20141206211151_create_scaptimony_assets_policies.rb
foreman_openscap-0.7.3 db/migrate/20141206211151_create_scaptimony_assets_policies.rb
foreman_openscap-0.7.2 db/migrate/20141206211151_create_scaptimony_assets_policies.rb