add new api
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user