diff --git a/db/migrate/20180213050551_add_image_path_to_employees.rb b/db/migrate/20180213050551_add_image_path_to_employees.rb new file mode 100644 index 00000000..bb26e888 --- /dev/null +++ b/db/migrate/20180213050551_add_image_path_to_employees.rb @@ -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 diff --git a/db/migrate/20180213050631_add_image_path_to_customers.rb b/db/migrate/20180213050631_add_image_path_to_customers.rb new file mode 100644 index 00000000..11eecdc0 --- /dev/null +++ b/db/migrate/20180213050631_add_image_path_to_customers.rb @@ -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 diff --git a/db/migrate/20180213052206_add_image_path_to_commissioners.rb b/db/migrate/20180213052206_add_image_path_to_commissioners.rb new file mode 100644 index 00000000..f61dce61 --- /dev/null +++ b/db/migrate/20180213052206_add_image_path_to_commissioners.rb @@ -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 diff --git a/db/migrate/20180213053009_create_display_images.rb b/db/migrate/20180213053009_create_display_images.rb new file mode 100644 index 00000000..f40a9179 --- /dev/null +++ b/db/migrate/20180213053009_create_display_images.rb @@ -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