assign table ,membership transaction and queue
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user