assign table ,membership transaction and queue

This commit is contained in:
Aung Myo
2017-06-21 16:22:53 +06:30
parent 6c4c817453
commit 7c5456d712
16 changed files with 502 additions and 311 deletions

View File

@@ -1,5 +1,4 @@
class CreateCustomers < ActiveRecord::Migration[5.1]
class CreateCustomers < ActiveRecord::Migration[5.1]
def change
create_table :customers, :id => false do |t|
t.string :customer_id, :limit => 16, :primary_key => true #custom foreign_key to prevent conflict during sync
@@ -15,7 +14,7 @@
t.string :gender
t.string :nrc_no
t.string :address
t.string :card_no
t.string :card_no, :unique => true
t.timestamps
end