add column to existing table and new table for second display images
This commit is contained in:
9
db/migrate/20180213050551_add_image_path_to_employees.rb
Normal file
9
db/migrate/20180213050551_add_image_path_to_employees.rb
Normal 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
|
||||
Reference in New Issue
Block a user