Sha256: 76625402d870055b2f6c5d719ba4dd52974a92220c4ae4bda6ef0705f04605a3

Contents?: true

Size: 545 Bytes

Versions: 33

Compression:

Stored size: 545 Bytes

Contents

class AddColumnsToScaptimonyPolicies < ActiveRecord::Migration
  def change
    add_column :scaptimony_policies, :xccdf_profile, :string
    add_column :scaptimony_policies, :period, :string
    add_column :scaptimony_policies, :weekday, :string
    add_column :scaptimony_policies, :description, :string

    # This works only with rails-4, I want to support rails-3 too
    # add_reference :scaptimony_policies, :scap_content, index: true
    add_column :scaptimony_policies, :scap_content_id, :integer, :references => :scap_content
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
foreman_openscap-0.7.13 db/migrate/20141105174834_add_columns_to_scaptimony_policies.rb
foreman_openscap-0.8.6 db/migrate/20141105174834_add_columns_to_scaptimony_policies.rb
foreman_openscap-0.8.5 db/migrate/20141105174834_add_columns_to_scaptimony_policies.rb
foreman_openscap-0.7.12 db/migrate/20141105174834_add_columns_to_scaptimony_policies.rb
foreman_openscap-0.8.4 db/migrate/20141105174834_add_columns_to_scaptimony_policies.rb
foreman_openscap-0.7.11 db/migrate/20141105174834_add_columns_to_scaptimony_policies.rb
foreman_openscap-0.7.10 db/migrate/20141105174834_add_columns_to_scaptimony_policies.rb
foreman_openscap-0.8.3 db/migrate/20141105174834_add_columns_to_scaptimony_policies.rb
foreman_openscap-0.7.9 db/migrate/20141105174834_add_columns_to_scaptimony_policies.rb
foreman_openscap-0.7.8 db/migrate/20141105174834_add_columns_to_scaptimony_policies.rb
foreman_openscap-0.7.7 db/migrate/20141105174834_add_columns_to_scaptimony_policies.rb
foreman_openscap-0.8.2 db/migrate/20141105174834_add_columns_to_scaptimony_policies.rb
foreman_openscap-0.7.6 db/migrate/20141105174834_add_columns_to_scaptimony_policies.rb
foreman_openscap-0.8.1 db/migrate/20141105174834_add_columns_to_scaptimony_policies.rb
foreman_openscap-0.7.5 db/migrate/20141105174834_add_columns_to_scaptimony_policies.rb
foreman_openscap-0.8.0 db/migrate/20141105174834_add_columns_to_scaptimony_policies.rb
foreman_openscap-0.7.4 db/migrate/20141105174834_add_columns_to_scaptimony_policies.rb
foreman_openscap-0.7.3 db/migrate/20141105174834_add_columns_to_scaptimony_policies.rb
foreman_openscap-0.7.2 db/migrate/20141105174834_add_columns_to_scaptimony_policies.rb
foreman_openscap-0.7.1 db/migrate/20141105174834_add_columns_to_scaptimony_policies.rb