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

      t.boolean :enabled, null: false, default: true
      t.boolean :include_allocations, null: false, default: false

      t.timestamps
    end
  end
end
