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 c05cfe90..f61790a5 100644 --- a/rails_application/db/schema.rb +++ b/rails_application/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.0].define(version: 2024_09_25_110446) do +ActiveRecord::Schema[7.0].define(version: 2024_09_25_121716) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -96,7 +96,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