Skip to content

Commit

Permalink
Drop stock level from product!
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszreszke committed Sep 26, 2024
1 parent 1b29c79 commit 926bf60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class DropStockLevelFromProduct < ActiveRecord::Migration[7.0]
def change
remove_column :products, :stock_level
end
end
3 changes: 1 addition & 2 deletions rails_application/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 926bf60

Please sign in to comment.