Merge branch 'august_spring' of bitbucket.org:code2lab/sxrestaurant

This commit is contained in:
Yan
2017-08-14 14:40:43 +06:30
34 changed files with 837 additions and 21 deletions

View File

@@ -0,0 +1,16 @@
class CreateDiningCharges < ActiveRecord::Migration[5.1]
def change
create_table :dining_charges do |t|
t.references :dining_facility
t.string :item_code, :null => false
t.integer :unit_price, :default => 0
t.boolean :taxable, :default => true
t.string :charge_type, :default => "hr"
t.time :minimum_free_time
t.time :charge_block
t.string :time_rounding, :default => "down"
t.time :time_rounding_block
t.timestamps
end
end
end