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