update sale order talble

This commit is contained in:
Nweni
2017-06-09 13:13:20 +06:30
parent 6171b00dc7
commit 56ffd1f063
9 changed files with 34 additions and 23 deletions

View File

@@ -1,8 +1,8 @@
class CreateSaleOrders < ActiveRecord::Migration[5.1]
def change
create_table :sale_orders, :id => false do |t|
t.primary_key :sale_order_id #custom primary key - to ensure consistence for cloud syncing
t.string :sale_order_id, :limit => 16, :primary_key => true
t.string :sale_id, foreign_key: true,:limit => 16
t.string :order_id, foreign_key: true, :limit => 16