add new api

This commit is contained in:
Sunandar
2017-02-03 17:56:27 +06:30
parent b4c9e8cc8e
commit 538c898e06
12 changed files with 117 additions and 75 deletions

View File

@@ -3,6 +3,7 @@ class CreateBatches < ActiveRecord::Migration[5.0]
create_table :batches do |t|
t.datetime :date,:null => false
t.references :user
t.references :client
t.string :order_ref,:null => false
t.boolean :batch_start
t.boolean :batch_end

View File

@@ -2,11 +2,13 @@ class CreateBatchLineItems < ActiveRecord::Migration[5.0]
def change
create_table :batch_line_items do |t|
t.references :batch
t.string :serial_no , null: false
t.string :wristband_code , null: false
t.string :manufacture_uid ,null:false
t.string :card_type,:default => "child"
t.timestamps null: false
t.string :serial_no , null: false
t.string :asset_identity , null: false
t.string :manufacture_uid ,null:false
t.string :asset_type,:default => "child"
t.datetime :encoded_at
t.datetime :verified_at
t.timestamps null: false
end
end
end

View File

@@ -6,8 +6,7 @@ class CreateUser < ActiveRecord::Migration[5.0]
t.string :email
t.boolean :is_active,:default =>false
t.string :phone
t.string :address
t.string :secrect_key
t.string :address
t.timestamps null: false
end
end