close cashier pdf and receipt bill pdf changes for credit payment
This commit is contained in:
@@ -2,7 +2,7 @@ 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
|
||||
t.string :name, :null => false
|
||||
t.string :name, :null => false, :index => true
|
||||
t.string :company
|
||||
t.string :email
|
||||
t.string :contact_no, :unique => true
|
||||
@@ -20,6 +20,6 @@ class CreateCustomers < ActiveRecord::Migration[5.1]
|
||||
t.json :tax_profiles
|
||||
t.string :image_path
|
||||
end
|
||||
add_index :customers, [:membership_id, :customer_type]
|
||||
add_index :customers, [:name, :membership_id, :customer_type]
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user