From 39fa8e0acecb9f7a955b45735bd904988927d8dd Mon Sep 17 00:00:00 2001 From: Ahmed Ejaz Date: Thu, 14 Nov 2024 11:04:20 +0500 Subject: [PATCH] 12878: fix migration class name --- ...20241011071014_update_item_name_to_product_in_od_report.rb | 2 +- db/schema.rb | 4 +++- ...011071014_update_item_name_to_product_in_od_report_spec.rb | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/db/migrate/20241011071014_update_item_name_to_product_in_od_report.rb b/db/migrate/20241011071014_update_item_name_to_product_in_od_report.rb index 53cb967ea8..b4e2df64c4 100644 --- a/db/migrate/20241011071014_update_item_name_to_product_in_od_report.rb +++ b/db/migrate/20241011071014_update_item_name_to_product_in_od_report.rb @@ -1,4 +1,4 @@ -class UpdateItemNameToProductInODReport < ActiveRecord::Migration[7.0] +class UpdateItemNameToProductInOdReport < ActiveRecord::Migration[7.0] # OD: Orders and Distributors def up # adding subtype filter just to be safe diff --git a/db/schema.rb b/db/schema.rb index 9ca97c3eef..856aa02bbf 100644 --- a/db/schema.rb +++ b/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_10_02_014059) do +ActiveRecord::Schema[7.0].define(version: 2024_10_23_054951) do # These are extensions that must be enabled in order to support this database enable_extension "pg_stat_statements" enable_extension "plpgsql" @@ -968,6 +968,8 @@ ActiveRecord::Schema[7.0].define(version: 2024_10_02_014059) do t.bigint "shipping_category_id" t.bigint "primary_taxon_id" t.bigint "supplier_id" + t.float "variant_unit_scale" + t.string "variant_unit_name", limit: 255 t.index ["primary_taxon_id"], name: "index_spree_variants_on_primary_taxon_id" t.index ["product_id"], name: "index_variants_on_product_id" t.index ["shipping_category_id"], name: "index_spree_variants_on_shipping_category_id" diff --git a/spec/migrations/20241011071014_update_item_name_to_product_in_od_report_spec.rb b/spec/migrations/20241011071014_update_item_name_to_product_in_od_report_spec.rb index 49c23f48b6..b791b140a0 100644 --- a/spec/migrations/20241011071014_update_item_name_to_product_in_od_report_spec.rb +++ b/spec/migrations/20241011071014_update_item_name_to_product_in_od_report_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' require_relative '../../db/migrate/20241011071014_update_item_name_to_product_in_od_report' -RSpec.describe UpdateItemNameToProductInODReport, type: :migration do +RSpec.describe UpdateItemNameToProductInOdReport, type: :migration do let!(:report_option_without_item_name_product) do create( :orders_and_distributors_options,