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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b102951859559bc96354a41e5dd05582209632d2394b86ba3916100374594706
|
4
|
+
data.tar.gz: b9f1ea8526f5bca4776f32e7c3a16f6dee1b32ce460e4975eebd693b00d941a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
12
|
+
null: true,
|
13
13
|
index: { name: 'tsr_on_ab_indx' },
|
14
14
|
foreign_key: { to_table: :cats_core_users }
|
15
15
|
|
data/lib/cats/core/version.rb
CHANGED