cats_core 1.2.33 → 1.2.34

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: 3aed21bf180ae6d0331c1be25213c8d7d0f2ca5b42a4d4fa36f8d3951b8b9d33
4
- data.tar.gz: 33919ff035f5e95cdddd1f1b9f9571aa6575e889f866feca488f50600f217709
3
+ metadata.gz: 28997d39a875dc6d5747f18de4f4803264aa98e8a49ee6fd09d79da78bf6a959
4
+ data.tar.gz: 2ce0c99ef80307ad76a4a070174898edda15ecc7a26b088f279109b9af065a8c
5
5
  SHA512:
6
- metadata.gz: 746faa79cd09c46e2da93ac789ca288041ad89800ecd5b8f581692314d691a784c7d6beaecbda079b4e4e176eda80c977e9d149316bdc08061c1d206c617c05e
7
- data.tar.gz: 9f7e39feebfe124849351f697df18b3278e9e53128000d87312a0e18505ef46e43d2ce71db040b86a639daeda6cca6c9af372449fce080cb7b0dc90f80e4bac8
6
+ metadata.gz: 6ce37b77dd8690b49307d4748a45ac60294e978d8ebb825e5f81324141ad464d0e021ba005dfa149553449f82e5e8fac68dbea2d679e13741d67b87cde1b75c0
7
+ data.tar.gz: 03fe91c921eb78c722bf959b5ac6f6c6368a86da82100f4238e8b854d4ad4b87b30d9ce5a24c2289a864eeba0588e4b5fb7f8bb76c500540ccdce5a51f16a69e
@@ -1,7 +1,6 @@
1
1
  module Cats
2
2
  module Core
3
3
  class TransportContract < ApplicationRecord
4
- belongs_to :region, class_name: 'Cats::Core::Location'
5
4
  belongs_to :transporter
6
5
  belongs_to :transport_bid
7
6
  has_many :contract_items
@@ -9,7 +8,6 @@ module Cats
9
8
  validates :contract_no, presence: true, uniqueness: true
10
9
  validates :contract_date, :expires_on, presence: true
11
10
 
12
- delegate(:name, to: :region, prefix: true)
13
11
  delegate(:name, to: :transporter, prefix: true)
14
12
  delegate(:reference_no, to: :transport_bid, prefix: :bid)
15
13
  end
@@ -2,10 +2,6 @@ class CreateCatsCoreTransportContracts < ActiveRecord::Migration[6.1]
2
2
  def change
3
3
  create_table :cats_core_transport_contracts do |t|
4
4
  t.string :contract_no, unique: true
5
- t.references :region,
6
- null: false,
7
- index: { name: 'region_on_tc_indx' },
8
- foreign_key: { to_table: :cats_core_locations }
9
5
  t.references :transporter,
10
6
  null: false,
11
7
  index: { name: 'transporter_on_tc_indx' },
@@ -1,5 +1,5 @@
1
1
  module Cats
2
2
  module Core
3
- VERSION = '1.2.33'.freeze
3
+ VERSION = '1.2.34'.freeze
4
4
  end
5
5
  end
@@ -1,7 +1,6 @@
1
1
  FactoryBot.define do
2
2
  factory :transport_contract, class: 'Cats::Core::TransportContract' do
3
3
  contract_no { FFaker::Name.name }
4
- region factory: :location
5
4
  transporter
6
5
  transport_bid
7
6
  contract_date { Date.today }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cats_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.33
4
+ version: 1.2.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-31 00:00:00.000000000 Z
11
+ date: 2022-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_serializers