class AddExploitableRightsToContractTemplates < ActiveRecord::Migration[6.0]
  def change
    add_reference :contract_templates, :applicable_medium, foreign_key: true
    add_column :contract_templates, :applicable_medium_text, :string
    add_reference :contract_templates, :territory, foreign_key: true
    add_column :contract_templates, :territory_text, :string
    add_reference :contract_templates, :term, foreign_key: true
    add_column :contract_templates, :term_text, :string
    add_reference :contract_templates, :restriction, foreign_key: true
    add_column :contract_templates, :restriction_text, :string
  end
end
