emenu api integrated
This commit is contained in:
@@ -2,9 +2,11 @@ class CreateMenuCategories < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :menu_categories do |t|
|
||||
t.references :menu, foreign_key: true
|
||||
t.string :code, :null => false
|
||||
t.string :name, :null => false
|
||||
t.string :alt_name
|
||||
t.integer :order_by
|
||||
t.string :created_by, :null => false
|
||||
t.references :menu_category, :null => true
|
||||
|
||||
t.timestamps
|
||||
|
||||
@@ -8,6 +8,7 @@ class CreateEmployees < ActiveRecord::Migration[5.0]
|
||||
t.string :token_session
|
||||
t.datetime :session_expiry
|
||||
t.datetime :session_last_login
|
||||
t.string :created_by
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
@@ -14,7 +14,7 @@ class CreateSales < ActiveRecord::Migration[5.0]
|
||||
t.decimal :total_discount, :precision => 10, :scale => 2, :null => false, :default => 0.00
|
||||
t.decimal :total_tax, :precision => 10, :scale => 2, :null => false, :default => 0.00
|
||||
t.string :tax_type, :null => false , :dfault => "exclusive_tax"
|
||||
t.decimal :grant_total, :precision => 10, :scale => 2, :null => false, :default => 0.00
|
||||
t.decimal :grand_total, :precision => 10, :scale => 2, :null => false, :default => 0.00
|
||||
t.decimal :rounding_adjustment, :precision => 10, :scale => 2, :null => false, :default => 0.00
|
||||
t.decimal :amount_received, :precision => 10, :scale => 2, :null => false, :default => 0.00
|
||||
t.decimal :amount_changed, :precision => 10, :scale => 2, :null => false, :default => 0.00
|
||||
|
||||
Reference in New Issue
Block a user