add survey

This commit is contained in:
Yan
2017-11-06 18:23:38 +06:30
parent 7e19dbc1b6
commit d5efe1402f
10 changed files with 57 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
class CreateSurveys < ActiveRecord::Migration[5.1]
def change
create_table :surveys do |t|
t.string :dining_name
t.string :receipt_no
t.integer :shift_id
t.string :created_by
t.integer :child
t.integer :adult
t.integer :male
t.integer :female
t.json :foreigner
t.integer :local
t.integer :total_customer
t.decimal :total_amount
t.timestamps
end
end
end