class CreateAdmissionRegistrations < ActiveRecord::Migration[6.0]
  def change
    create_table :admission_registrations do |t|
      t.references :school, null: false, type: :integer,
        foreign_key: { to_table: :Schools, primary_key: :SchoolID }

      t.string :first_name, limit: 24, null: false
      t.string :last_name, limit: 24, null: false
      t.string :email, limit: 128, null: false

      t.timestamps
    end
  end
end
