final db structure

This commit is contained in:
Min Zeya Phyo
2017-04-04 00:15:41 +06:30
parent 95454b4f0f
commit 2c1ac3191c
28 changed files with 209 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
class CreateSaleTaxes < ActiveRecord::Migration[5.0]
def change
create_table :sale_taxes do |t|
t.references :sale, foreign_key: true
t.string :tax_name, :null => false
t.decimal :tax_rate, :precision => 10, :scale => 2, :null => false, :default => 0.00
t.decimal :tax_payable_amount, :precision => 10, :scale => 2, :null => false, :default => 0.00
t.boolean :inclusive, :default => false, :null => false
t.timestamps
end
end
end