class CreateTalentReleases < ActiveRecord::Migration[5.2]
  def change
    create_table :talent_releases do |t|
      t.belongs_to :project, foreign_key: true
      t.belongs_to :contract_template, foreign_key: true
      t.string :person_name
      t.string :person_address_street1
      t.string :person_address_street2
      t.string :person_address_city
      t.string :person_address_state
      t.string :person_address_zip
      t.string :person_address_country
      t.string :person_phone
      t.string :person_email
      t.string :encrypted_person_ssn
      t.string :encrypted_person_ssn_iv
      t.string :guardian_name
      t.string :guardian_address_street1
      t.string :guardian_address_street2
      t.string :guardian_address_city
      t.string :guardian_address_state
      t.string :guardian_address_zip
      t.string :guardian_address_country
      t.string :guardian_phone
      t.string :guardian_email
      t.string :encrypted_guardian_ssn
      t.string :encrypted_guardian_ssn_iv
      t.boolean :minor, default: false
      t.string :locale
      t.text :notes

      t.timestamps
    end
  end
end
