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