Sha256: fefe1e52c45c6f8896f147ec67ba15a1a76e062e83ceabf54ad0f85a76e0e353
Contents?: true
Size: 975 Bytes
Versions: 72
Compression:
Stored size: 975 Bytes
Contents
class CreateTailoringFiles < ActiveRecord::Migration[4.2] def up create_table :foreman_openscap_tailoring_files do |t| t.string :name, :unique => true, :null => false t.text :scap_file t.string :original_filename t.datetime :created_at t.datetime :updated_at t.string :digest, :null => false end add_column :foreman_openscap_policies, :tailoring_file_id, :integer, :references => :tailoring_file add_column :foreman_openscap_policies, :tailoring_file_profile_id, :integer, :references => :scap_content_profile add_column :foreman_openscap_scap_content_profiles, :tailoring_file_id, :integer, :references => :tailoring_file end def down remove_column :foreman_openscap_policies, :tailoring_file_id remove_column :foreman_openscap_policies, :tailoring_file_profile_id remove_column :foreman_openscap_scap_content_profiles, :tailoring_file_id drop_table :foreman_openscap_tailoring_files end end
Version data entries
72 entries across 72 versions & 1 rubygems