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

      t.integer :pdfs, null: false, default: 0

      t.timestamps
    end
  end
end
