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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28997d39a875dc6d5747f18de4f4803264aa98e8a49ee6fd09d79da78bf6a959
|
4
|
+
data.tar.gz: 2ce0c99ef80307ad76a4a070174898edda15ecc7a26b088f279109b9af065a8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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' },
|
data/lib/cats/core/version.rb
CHANGED
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.
|
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:
|
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
|