dining_charges

This commit is contained in:
Nweni
2017-08-11 13:34:30 +06:30
parent 14384745ad
commit b0ad2049c5
26 changed files with 428 additions and 1 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