barcode update

This commit is contained in:
nandar
2018-07-26 09:33:20 +06:30
parent 004f801f71
commit 55554707f0
19 changed files with 36130 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
class CreateSellers < ActiveRecord::Migration[5.0]
def change
create_table :sellers do |t|
t.string :name
t.string :email
t.string :phone
t.string :address
t.string :key
t.timestamps
end
end
end

View File

@@ -0,0 +1,7 @@
class AddStatusBarcodeInBatchLineItems < ActiveRecord::Migration[5.0]
def change
add_column :batch_line_items, :barcode, :string, index: true
add_column :batch_line_items, :is_activated, :boolean, :default => false , index: true
add_column :batch_line_items, :activated_date, :datetime
end
end

View File

@@ -0,0 +1,6 @@
class AddExportToInBatch < ActiveRecord::Migration[5.0]
def change
add_column :batches, :export_to_seller_id, :integer
add_column :batches, :export_to_seller_date, :datetime
end
end

View File

@@ -0,0 +1,5 @@
class AddTypeInUser < ActiveRecord::Migration[5.0]
def change
add_column :users, :user_type, :string
end
end

View File

@@ -0,0 +1,5 @@
class DropTableSeller < ActiveRecord::Migration[5.0]
def change
drop_table :sellers
end
end