merge with august_spring
This commit is contained in:
12
db/migrate/20170818090115_create_commissioners.rb
Normal file
12
db/migrate/20170818090115_create_commissioners.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class CreateCommissioners < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
create_table :commissioners do |t|
|
||||
t.string :name, :null => false
|
||||
t.string :emp_id
|
||||
t.string :created_by
|
||||
t.string :commission_type
|
||||
t.boolean :is_active
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
11
db/migrate/20170821093252_create_commissions.rb
Normal file
11
db/migrate/20170821093252_create_commissions.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateCommissions < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
create_table :commissions do |t|
|
||||
t.integer :product_id, null: false
|
||||
t.integer :amount
|
||||
t.string :commission_type
|
||||
t.boolean :is_active
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
12
db/migrate/20170822034139_create_product_commissions.rb
Normal file
12
db/migrate/20170822034139_create_product_commissions.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class CreateProductCommissions < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
create_table :product_commissions do |t|
|
||||
t.string :product_code
|
||||
t.integer :commission_id
|
||||
t.integer :qty
|
||||
t.string :sale_id
|
||||
t.string :sale_item_id
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user