aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/20170905123421_create_compliance_controls.rb
blob: 6b507bb8d3705d50e7c2533b4a56d93ceb2d96cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class CreateComplianceControls < ActiveRecord::Migration
  def change
    create_table :compliance_controls do |t|
      t.references :compliance_control_set, index: true, foreign_key: true
      t.references :compliance_control_block, index: true, foreign_key: true
      t.string :type
      t.json :control_attributes
      t.string :name
      t.string :code
      t.integer :criticity
      t.text :comment

      t.timestamps null: false
    end
  end
end