cats_core 1.2.5 → 1.2.6

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: 57bd0cce4510afb100e277538b46b5d090b3a5a9c48cacd4da24d9865a3a3cdd
4
- data.tar.gz: 93e64f75bf5fb2a953d4f1dbc01667746ed5454b67857a27f27c5a3bed6bc86a
3
+ metadata.gz: b102951859559bc96354a41e5dd05582209632d2394b86ba3916100374594706
4
+ data.tar.gz: b9f1ea8526f5bca4776f32e7c3a16f6dee1b32ce460e4975eebd693b00d941a9
5
5
  SHA512:
6
- metadata.gz: 97092e8a99a11f22d5ad044ce913f75b5a5dc39ceb55c733ef248994a5e0686b32b6af564838127510296d8b1b3cb3bd0cae0f7f743dd3b262b9c78aa9efa2fa
7
- data.tar.gz: abcfc0f293575c891c961da89f8a038a7d83cffbe7c0c0eebb8e1cb996bc855c38f359b868db4eefaacf630f58456ae4beeb1a75d1f4e4cb80e57ab436dbc0d3
6
+ metadata.gz: 196b1372ef0c79666b491dfc63deedee8c624ae774ee12ef14894f94471be09a6b595ca1e0a483eea5ad01e9a6afb20652aa884adaf7bf383c82be0b270e3537
7
+ data.tar.gz: 8e3264080cc5cdfbab53447fc1eb59e7c6354433053d60484b0e056051aeeb35e0961f6dbc91d38a66b5cd5aa76895092cc343b1c8e37ff70c96b913e0ddb7ab
@@ -6,7 +6,7 @@ module Cats
6
6
  STATUSES = [DRAFT, APPROVED].freeze
7
7
 
8
8
  belongs_to :requested_by, class_name: 'Cats::Core::User'
9
- belongs_to :approved_by, class_name: 'Cats::Core::User'
9
+ belongs_to :approved_by, class_name: 'Cats::Core::User', optional: true
10
10
 
11
11
  validates :reference_no, :request_date, :status, presence: true
12
12
  validates :reference_no, uniqueness: true
@@ -9,7 +9,7 @@ class CreateCatsCoreTransportServiceRequests < ActiveRecord::Migration[6.1]
9
9
  index: { name: 'tsr_on_rb_indx' },
10
10
  foreign_key: { to_table: :cats_core_users }
11
11
  t.references :approved_by,
12
- null: false,
12
+ null: true,
13
13
  index: { name: 'tsr_on_ab_indx' },
14
14
  foreign_key: { to_table: :cats_core_users }
15
15
 
@@ -1,5 +1,5 @@
1
1
  module Cats
2
2
  module Core
3
- VERSION = '1.2.5'.freeze
3
+ VERSION = '1.2.6'.freeze
4
4
  end
5
5
  end
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.5
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.