From fb51f301d23bc835a97c5aaa0cefe07c70a33c2c Mon Sep 17 00:00:00 2001 From: lukaszreszke Date: Wed, 25 Sep 2024 14:17:56 +0200 Subject: [PATCH] Drop stock level from product! --- .../migrate/20240925121716_drop_stock_level_from_product.rb | 5 +++++ rails_application/db/schema.rb | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 rails_application/db/migrate/20240925121716_drop_stock_level_from_product.rb diff --git a/rails_application/db/migrate/20240925121716_drop_stock_level_from_product.rb b/rails_application/db/migrate/20240925121716_drop_stock_level_from_product.rb new file mode 100644 index 00000000..36074e09 --- /dev/null +++ b/rails_application/db/migrate/20240925121716_drop_stock_level_from_product.rb @@ -0,0 +1,5 @@ +class DropStockLevelFromProduct < ActiveRecord::Migration[7.0] + def change + remove_column :products, :stock_level + end +end diff --git a/rails_application/db/schema.rb b/rails_application/db/schema.rb index 25050fb8..36f9e7c2 100644 --- a/rails_application/db/schema.rb +++ b/rails_application/db/schema.rb @@ -131,7 +131,6 @@ t.string "category" t.datetime "created_at", null: false t.datetime "updated_at", null: false - t.integer "stock_level" t.decimal "future_price", precision: 8, scale: 2 t.datetime "future_price_start_time" t.boolean "latest", default: true