12878: fix migration class name

This commit is contained in:
Ahmed Ejaz
2024-11-14 11:04:20 +05:00
parent 355541e8de
commit 39fa8e0ace
3 changed files with 5 additions and 3 deletions

View File

@@ -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

View File

@@ -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"

View File

@@ -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,