Files
nemo_encoder/db/migrate/20170121053223_create_batch_line_items.rb
Sunandar 9dc6fd3cbe edit api
2017-02-08 18:11:45 +06:30

14 lines
464 B
Ruby

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.timestamps null: false
end
end
end