Merge branch 'master' of bitbucket.org:code2lab/sxrestaurant into split_bill

This commit is contained in:
phyusin
2018-02-13 13:39:43 +06:30
5 changed files with 43 additions and 2 deletions

View File

@@ -70,12 +70,12 @@
</ul>
</li>
<% if can? :menage, Inventory %>
<!-- <li>
<li>
<a href="<%= inventory_path %>">
<i class="material-icons">store</i>
<span><%= t :inventory %></span>
</a>
</li> -->
</li>
<%end%>
<li class="header"><%= t :backend %></li>
<li>

View File

@@ -0,0 +1,9 @@
class AddImagePathToEmployees < ActiveRecord::Migration[5.1]
def change
add_column :employees, :image_path, :string
end
def down
remove_column :image_path
end
end

View File

@@ -0,0 +1,9 @@
class AddImagePathToCustomers < ActiveRecord::Migration[5.1]
def change
add_column :customers, :image_path, :string
end
def down
remove_column :image_path
end
end

View File

@@ -0,0 +1,9 @@
class AddImagePathToCommissioners < ActiveRecord::Migration[5.1]
def change
add_column :commissioners, :image_path, :string
end
def down
remove_column :image_path
end
end

View File

@@ -0,0 +1,14 @@
class CreateDisplayImages < ActiveRecord::Migration[5.1]
def change
create_table :display_images do |t|
t.integer :shop_id
t.binary :image
t.string :created_by
t.timestamps
end
end
def down
drop_table :display_images
end
end