pull master

This commit is contained in:
Yan
2017-06-01 12:11:23 +06:30
29 changed files with 727 additions and 18 deletions

View File

@@ -1,13 +0,0 @@
class CreateSaleDiscounts < ActiveRecord::Migration[5.0]
def change
create_table :sale_discounts do |t|
t.references :sale, foreign_key: true
t.string :discount_type, :null => false
t.decimal :discount_value, :precision => 10, :scale => 2, :null => false, :default => 0.00
t.decimal :discount_amount, :precision => 10, :scale => 2, :null => false, :default => 0.00
t.string :discount_code
t.timestamps
end
end
end