This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
phone_app/db/migrate/20190902091327_create_tva_rates.rb
2021-08-23 10:26:02 +02:00

16 lines
405 B
Ruby

class CreateTvaRates < ActiveRecord::Migration[6.0]
def change
create_table :tva_rates do |t|
t.string :name
t.text :description
t.references :accounting_zone, foreign_key: true
t.boolean :enabled, :default => true
t.decimal :rate, :precision => 5, :scale => 2
t.string :purchase_account
t.string :sale_account
t.timestamps
end
end
end