barcode update
This commit is contained in:
13
db/migrate/20180720032352_create_sellers.rb
Normal file
13
db/migrate/20180720032352_create_sellers.rb
Normal 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
|
||||
@@ -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
|
||||
6
db/migrate/20180724035749_add_export_to_in_batch.rb
Normal file
6
db/migrate/20180724035749_add_export_to_in_batch.rb
Normal 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
|
||||
5
db/migrate/20180724053855_add_type_in_user.rb
Normal file
5
db/migrate/20180724053855_add_type_in_user.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddTypeInUser < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_column :users, :user_type, :string
|
||||
end
|
||||
end
|
||||
5
db/migrate/20180724072431_drop_table_seller.rb
Normal file
5
db/migrate/20180724072431_drop_table_seller.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class DropTableSeller < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
drop_table :sellers
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user