From e1defc323234aa4b200b4e002303241653d8fde2 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 121e1547..5eac9785 100644 --- a/rails_application/db/schema.rb +++ b/rails_application/db/schema.rb @@ -144,7 +144,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