edit api
This commit is contained in:
@@ -2,12 +2,12 @@ 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 :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.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
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20170208065316) do
|
||||
ActiveRecord::Schema.define(version: 20170208111712) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
@@ -51,13 +51,14 @@ ActiveRecord::Schema.define(version: 20170208065316) do
|
||||
end
|
||||
|
||||
create_table "clients", force: :cascade do |t|
|
||||
t.string "name", null: false
|
||||
t.string "name", null: false
|
||||
t.string "email"
|
||||
t.string "phone"
|
||||
t.string "address"
|
||||
t.string "secrect_key"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "location_code"
|
||||
end
|
||||
|
||||
create_table "lookups", force: :cascade do |t|
|
||||
|
||||
Reference in New Issue
Block a user