class CreateSubjects < ActiveRecord::Migration
  def change
    create_table :subjects do |t|
      t.string :name, null: false, default: nil
      t.string :mail, null: false, default: nil
      t.string :targeted_id, null: false, default: nil
      t.string :shared_token, null: false, default: nil
      t.timestamps

      t.index :targeted_id
      t.index :shared_token, unique: true
    end
  end
end

class CreateSubjects < ActiveRecord::Migration
  def change
    create_table :subjects do |t|
      t.string :name, null: false, default: nil
      t.string :mail, null: false, default: nil
      t.string :targeted_id, null: true, default: nil
      t.string :shared_token, null: true, default: nil
      t.boolean :complete, null: false, default: false
      t.timestamps

      t.index :targeted_id
      t.index :shared_token, unique: true
    end
  end
end

Allow subjects to be 'incomplete' when created
Allow subjects to be 'incomplete' when created

Subjects may be created by an administrative user of the system, and
thus not yet be associated with an EPTID / AEPST. Need to allow these
objects to be created.
