cats_core 1.2.27 → 1.2.28

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: 5dd652b6eeefe39811487b8fa993471b4f61c3692a8a1400ff929612ae7a6138
4
- data.tar.gz: 224e2b50ff72bf811c3a9a9acaf34f1bd24eeab09729e7ad0a04503e7d671785
3
+ metadata.gz: 3fb2a7abf04c5411df9257ef309f1a6af300e3a2bc1788d0967077b6e09f27ec
4
+ data.tar.gz: 1a4bc874a3ea71f92ac6de37f5f826c3095f326ca808527705850d5f2d3a3f08
5
5
  SHA512:
6
- metadata.gz: a6d3e915bb2150d9d6cbeb62e571b100970ac74b8517cf96cc94f2b9c3517d0a40328aca7c55cab359991f27b090ce28d732e062a74d2188112839c61cc13f47
7
- data.tar.gz: c25d23f1eb76225dbb67bedcd439fc11ae1f2aaa6bd951f72af81bd00f6647a69861415f2c6da247a1f709da75fde33bb31e702f08228b6424018967996ea5d6
6
+ metadata.gz: d9e67913462314e8969df71f63e25ad5866e4274755c8c0bf88c24654d9be70ede9c99b5ae4e8363e87089eb792a54c6506ae622ff217ad97eff6b292b8fb8ef
7
+ data.tar.gz: d8c7d1ffae92d0297b0b23ea2a3032fc08e4859ba0ea172a46ac8de2ca3ebc1644cc9172c2b7fc8a8cabeb4cafb161947ef5f667fd09b2764c44f94f4208cc22
@@ -5,6 +5,7 @@ module Cats
5
5
  belongs_to :transporter
6
6
  belongs_to :transport_bid
7
7
 
8
+ validates :contract_no, presence: true, uniqueness: true
8
9
  validates :contract_date, :expires_on, presence: true
9
10
 
10
11
  delegate(:name, to: :region, prefix: true)
@@ -1,6 +1,7 @@
1
1
  class CreateCatsCoreTransportContracts < ActiveRecord::Migration[6.1]
2
2
  def change
3
3
  create_table :cats_core_transport_contracts do |t|
4
+ t.string :contract_no, unique: true
4
5
  t.references :region,
5
6
  null: false,
6
7
  index: { name: 'region_on_tc_indx' },
@@ -1,5 +1,5 @@
1
1
  module Cats
2
2
  module Core
3
- VERSION = '1.2.27'.freeze
3
+ VERSION = '1.2.28'.freeze
4
4
  end
5
5
  end
@@ -1,5 +1,6 @@
1
1
  FactoryBot.define do
2
2
  factory :transport_contract, class: 'Cats::Core::TransportContract' do
3
+ contract_no { FFaker::Name.name }
3
4
  region factory: :location
4
5
  transporter
5
6
  transport_bid
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.27
4
+ version: 1.2.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.