class AddExploitableRightsToAppearanceRelease < ActiveRecord::Migration[6.0]
  def change
    add_reference :appearance_releases, :applicable_medium, foreign_key: true
    add_column :appearance_releases, :applicable_medium_text, :text, null: false, default: '' 
    add_reference :appearance_releases, :territory, foreign_key: true 
    add_column :appearance_releases, :territory_text, :text, null: false, default: '' 
    add_reference :appearance_releases, :term, foreign_key: true
    add_column :appearance_releases, :term_text, :text, null: false, default: '' 
    add_reference :appearance_releases, :restriction, foreign_key: true
    add_column :appearance_releases, :restriction_text, :text, null: false, default: '' 
  end
end
