finished customer form and update
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
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
|
||||
@@ -10,6 +11,11 @@ class CreateCustomers < ActiveRecord::Migration[5.1]
|
||||
t.string :membership_id
|
||||
t.string :membership_type
|
||||
t.string :membership_authentication_code
|
||||
t.string :salution
|
||||
t.string :gender
|
||||
t.string :nrc_no
|
||||
t.string :address
|
||||
t.string :card_no
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
Reference in New Issue
Block a user