class CreateInvClosingAmounts < ActiveRecord::Migration[6.0]
  def change
    create_table :inv_closing_amounts do |t|
      t.integer :closing_id, null: false
      t.decimal :vat_rate, precision: 10, scale: 3, null: false
      t.decimal :grand_vat_total, precision: 10, scale: 3, null: false
      t.decimal :perpetual_vat_total, precision: 10, scale: 3, null: false
      t.string :hash_string
      t.string :previous_hash_string
      t.timestamps
      t.index :closing_id
    end
  end
end
