sales and orders methods updates

This commit is contained in:
Min Zeya Phyo
2017-04-11 13:51:09 +08:00
parent 225ebdb7ef
commit 5b1bb6f6cd
10 changed files with 150 additions and 9 deletions

View File

@@ -5,6 +5,7 @@ class CreateCustomers < ActiveRecord::Migration[5.0]
t.string :company
t.string :contact_no
t.string :email
t.date :date_of_birth
t.string :membership_id
t.string :membership_type
t.string :membership_authentication_code

View File

@@ -0,0 +1,12 @@
class CreateSeedGenerators < ActiveRecord::Migration[5.0]
def change
create_table :seed_generators do |t|
t.string :model, :null => false, :default => "sale"
t.integer :increase_by, :null => false, :default => 1
t.bigint :current, :null => false ,:default => 1
t.bigint :next, :null => false, :default => 2
t.timestamps
end
end
end