add zone test-rspec

This commit is contained in:
Min Zeya Phyo
2017-03-24 21:28:57 +06:30
parent 3ec71e85fe
commit a247cd44eb
19 changed files with 108 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ class CreateZones < ActiveRecord::Migration[5.0]
create_table :zones do |t|
t.string :name, :null => false
t.boolean :is_active, :default => true
t.string :created_by
t.timestamps
end
end

View File

@@ -8,7 +8,7 @@ class CreateSeatTables < ActiveRecord::Migration[5.0]
t.string :table_type, :null => false, :default => "square"
t.float :position_x, :null => false, :default => 0.0
t.float :position_y, :null => false, :default => 0.0
t.string :created_by
t.timestamps
end
end