ecom_core 1.2.24 → 1.2.25

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df898073d93a47b62e3478402f39348fb1ebce76fcb15247cbaae48b1f20da8b
4
- data.tar.gz: 9b0e8f96058c4fcb320e42f4559c7f6ad951414935f8ad369e0d1b3f6cdd4f80
3
+ metadata.gz: 55981c8967b5bc6d73d2ee78c31f2b0cdab1fbe48a43151ac23364b4b49c3a2e
4
+ data.tar.gz: c92cf858178d5225c806b0f65faf21bb67d819d2397fe564c0306866a950a34b
5
5
  SHA512:
6
- metadata.gz: 79e71c70e77d0dfdb3b13141f2be198fe8ab989293af0b7cb82b1bcb661d1a8b9f1b6604a50074c7a8c8d992e9db618720c4520702237b8b280215c4209b57c0
7
- data.tar.gz: 5d881608dee92bd62f78e777d2b4eadeadcf80faa89852c9d1af820ff900fd373b812a4763a80949d6eec6a5bbeb17ac256404f2b7a729b6dfef63431f9a3761
6
+ metadata.gz: 1f79dd43c005604fed22a80bf4b071f1e07f5cddc8c6de368f96b7e0d06413d15edad31a73792ba353c31b8d7e9dc7c0553fe0a414bf9c065bcdb127f60dba7a
7
+ data.tar.gz: 4c4944902306db1e7317deb45cbcd5cdb91c0aa8ef9b12184ef2c9f25fcf1814fbebe6c1b6db6a63c48977e7484ae67fb6b73b2d2a503f30f2cfcaefcf26c1b7
@@ -7,7 +7,6 @@ module Ecom
7
7
 
8
8
  belongs_to :work_product
9
9
  belongs_to :task_template
10
- belongs_to :work_package, optional: true
11
10
  belongs_to :performer, class_name: 'Ecom::Core::User', optional: true
12
11
  belongs_to :approver, class_name: 'Ecom::Core::User', optional: true
13
12
  belongs_to :supervisor, class_name: 'Ecom::Core::User', optional: true
@@ -6,7 +6,7 @@ module Ecom
6
6
  validates :code, :name, presence: true
7
7
  validates :code, uniqueness: true
8
8
 
9
- has_many :tasks
9
+ has_many :work_products
10
10
  end
11
11
  end
12
12
  end
@@ -26,6 +26,7 @@ module Ecom
26
26
  belongs_to :work_product_template
27
27
  belongs_to :project
28
28
  belongs_to :product_group, optional: true
29
+ belongs_to :work_package, optional: true
29
30
  belongs_to :approver, class_name: 'Ecom::Core::User', optional: true
30
31
  belongs_to :supervisor, class_name: 'Ecom::Core::User', optional: true
31
32
  belongs_to :quality_controller, class_name: 'Ecom::Core::User', optional: true
@@ -9,6 +9,10 @@ class CreateEcomCoreWorkProducts < ActiveRecord::Migration[6.0]
9
9
  null: true,
10
10
  index: { name: 'wp_on_pg_indx' },
11
11
  foreign_key: { to_table: :ecom_core_product_groups }
12
+ t.references :work_package,
13
+ null: true,
14
+ index: { name: 'wp_on_wp_indx' },
15
+ foreign_key: { to_table: :ecom_core_work_packages }
12
16
  t.references :work_product_template,
13
17
  null: false,
14
18
  index: { name: 'wpt_on_wp_indx' },
@@ -10,10 +10,6 @@ class CreateEcomCoreTasks < ActiveRecord::Migration[6.0]
10
10
  t.string :status, null: false, default: :new
11
11
  t.integer :percent_completed, null: false, default: 0
12
12
  t.string :remark
13
- t.references :work_package,
14
- null: true,
15
- index: { name: 'wp_on_wp_indx' },
16
- foreign_key: { to_table: :ecom_core_work_packages }
17
13
  t.references :performer,
18
14
  null: true,
19
15
  index: { name: 'tasks_on_performer_indx' },
@@ -1,5 +1,5 @@
1
1
  module Ecom
2
2
  module Core
3
- VERSION = '1.2.24'.freeze
3
+ VERSION = '1.2.25'.freeze
4
4
  end
5
5
  end
@@ -16,6 +16,5 @@ FactoryBot.define do
16
16
  association :quality_controller, factory: :user
17
17
  association :task_template
18
18
  association :work_product
19
- association :work_package
20
19
  end
21
20
  end
@@ -5,6 +5,7 @@ FactoryBot.define do
5
5
  design_reference_no { FFaker::Guid.guid }
6
6
  dimension { [{ label: 'Length', name: 'length', value: 12 }] }
7
7
  association :product_group
8
+ association :work_package
8
9
  association :work_product_template
9
10
  association :project
10
11
  status { Ecom::Core::WorkProduct::NEW }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecom_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.24
4
+ version: 1.2.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.