Drop source_id and source_type columns from spree_adjustments

These are no longer used
This commit is contained in:
Matt-Yorkley
2021-10-29 18:46:53 +01:00
parent b0545c7fd3
commit 1007d7afdf
2 changed files with 7 additions and 3 deletions

View File

@@ -0,0 +1,6 @@
class DropSourceColumns < ActiveRecord::Migration[6.1]
def change
remove_column :spree_adjustments, :source_id
remove_column :spree_adjustments, :source_type
end
end

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2021_09_27_091723) do
ActiveRecord::Schema.define(version: 2021_10_29_174211) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -373,10 +373,8 @@ ActiveRecord::Schema.define(version: 2021_09_27_091723) do
end
create_table "spree_adjustments", force: :cascade do |t|
t.integer "source_id"
t.decimal "amount", precision: 10, scale: 2
t.string "label", limit: 255
t.string "source_type", limit: 255
t.integer "adjustable_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false