add column to existing table and new table for second display images

This commit is contained in:
phyusin
2018-02-13 13:29:19 +06:30
parent 839fb14436
commit 5ef5ff4fbe
4 changed files with 41 additions and 0 deletions

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