cats_core 1.2.23 → 1.2.24

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: 6fe0f87a2452fb8bcafe40ece45a769789b6b576cab27cdf0867507acc79338e
4
- data.tar.gz: 967feac1199b16fe037295cb805c3cb9cf7234b37e03641af952bf1ffc7e624d
3
+ metadata.gz: 8c1981cb078f54862e1d8a5a0189f5c30af4a39e27c0640743b516467929e19d
4
+ data.tar.gz: cc7bd6720e152ff653970291073fc3e597b1387052dde5b8fcc33f886eff2eba
5
5
  SHA512:
6
- metadata.gz: 01ce4d95e2c647519e65a19b109a81229bae931aa0af07cf719f9a2f2322f4d8edc4c098e221a51af9577b64a394da4bd05dc8243e7a28837d8ea5482b2c2b56
7
- data.tar.gz: e78386c0c8df0e6b8045de92d5235516e09937d044b7e0efee9505fc6b629b1589ee962e759ea17460e19f3caef58a4ad1554959bad138740aec29d870b3c932
6
+ metadata.gz: c001644ba4030047ff818acc88225a7b374fdf4a3fb098e645698dae0c5f54e7723aef86ea7ffa98109d4fc596dfc76fa9e6c0d67a1c69e6e7f72392793a7ac8
7
+ data.tar.gz: cb482c5b61c5d7dbe7f2d692d547dc7ae5c4e2a0443d979f66b0e0db486e0aa041df9e1c798546e6729080fddb4dc6dede4eccf2ea7c72090399bb831f9c20c8
@@ -3,6 +3,7 @@ module Cats
3
3
  class TransportContract < ApplicationRecord
4
4
  belongs_to :region, class_name: 'Cats::Core::Location'
5
5
  belongs_to :transporter
6
+ belongs_to :transport_bid
6
7
 
7
8
  validates :contract_date, :expires_on, presence: true
8
9
  end
@@ -9,6 +9,10 @@ class CreateCatsCoreTransportContracts < ActiveRecord::Migration[6.1]
9
9
  null: false,
10
10
  index: { name: 'transporter_on_tc_indx' },
11
11
  foreign_key: { to_table: :cats_core_transporters }
12
+ t.references :transport_bid,
13
+ null: false,
14
+ index: { name: 'tb_on_tc_indx' },
15
+ foreign_key: { to_table: :cats_core_transport_bids }
12
16
  t.date :contract_date, null: false
13
17
  t.date :expires_on, null: false
14
18
  t.string :payment_term
@@ -1,5 +1,5 @@
1
1
  module Cats
2
2
  module Core
3
- VERSION = '1.2.23'.freeze
3
+ VERSION = '1.2.24'.freeze
4
4
  end
5
5
  end
@@ -2,6 +2,7 @@ FactoryBot.define do
2
2
  factory :transport_contract, class: 'Cats::Core::TransportContract' do
3
3
  region factory: :location
4
4
  transporter
5
+ transport_bid
5
6
  contract_date { Date.today }
6
7
  expires_on { Date.today + 6.month }
7
8
  payment_term { FFaker::Name.name }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cats_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.23
4
+ version: 1.2.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.