bscf-core 0.3.93 → 0.3.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84b5c589f1ce2635fdc88e79472dd27f93c1f102f117c60615c68419e3dab328
4
- data.tar.gz: 0a338ac130227acf7963a58afce6ad0eae43f3a094c480ce31b5fbc78eb9676a
3
+ metadata.gz: b5e753307eddd088b9766de57d13afe6cc4314ff0397e6f41cfe52186d590600
4
+ data.tar.gz: ef5ae10b4107c6e55a15f5510c9752fed060f72f76507d2f7b1ba6717854838c
5
5
  SHA512:
6
- metadata.gz: d211bfe802dc0fc51ef9457cb382704056079a89b0b17860d52af71e20574f771042363bebada28a572af6555c707e075a699ba93573201a512b946fc17f346e
7
- data.tar.gz: 6d38b373ce071de2e81354199709c5c3a9491b17275da28484d82304f2d59d59c265a00249849ee2cad3d3f2bf46a4e33fb9af7a24dea160dd3e9c93f6db5855
6
+ metadata.gz: c7416e778a80c6d2ff80e84e20bdf1177085eafb1bc720cf1c0184f8116ec6670f8595667040d739064363ddc9afc97fc64745a94eb415866b63af73e9e567e2
7
+ data.tar.gz: 0b93e631c442249dd259a10e3bf5be40adabb233504bea4d467e8871d26cbf0e21ccb67d90d9a709ac90751cf81e17ddd41f4318a37b888cb7709e125309f070
@@ -4,7 +4,7 @@ module Bscf
4
4
  belongs_to :user
5
5
 
6
6
  validates :business_name, presence: true
7
- validates :tin_number, presence: true, uniqueness: { case_sensitive: false }
7
+ validates :tin_number, uniqueness: { case_sensitive: false }
8
8
  validates :business_type, presence: true
9
9
  validates :verification_status, presence: true
10
10
 
@@ -5,6 +5,8 @@ module Bscf
5
5
 
6
6
  has_one :user_profile
7
7
  has_one :user_role
8
+ has_one :business
9
+ has_one :vehicle, foreign_key: :driver_id
8
10
  has_many :user_roles
9
11
  has_many :roles, through: :user_roles
10
12
  has_many :orders_placed, class_name: "Bscf::Core::Order", foreign_key: "ordered_by_id"
@@ -7,8 +7,6 @@ module Bscf
7
7
 
8
8
  validates :date_of_birth, presence: true
9
9
  validates :nationality, presence: true
10
- validates :occupation, presence: true
11
- validates :source_of_funds, presence: true
12
10
  validates :gender, presence: true
13
11
 
14
12
  enum :gender, {
@@ -0,0 +1,7 @@
1
+ class UpdateNotNullConstraintsInBusinesses < ActiveRecord::Migration[8.0]
2
+ def change
3
+ change_column_null :bscf_core_user_profiles, :source_of_funds, false
4
+ change_column_null :bscf_core_user_profiles, :occupation, false
5
+ change_column_null :bscf_core_businesses, :tin_number, false
6
+ end
7
+ end
@@ -1,5 +1,5 @@
1
1
  module Bscf
2
2
  module Core
3
- VERSION = "0.3.93"
3
+ VERSION = "0.3.97"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bscf-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.93
4
+ version: 0.3.97
5
5
  platform: ruby
6
6
  authors:
7
7
  - Asrat
@@ -339,6 +339,7 @@ files:
339
339
  - db/migrate/20250410181145_add_actual_delivery_time_to_delivery_orders.rb
340
340
  - db/migrate/20250410181146_modify_user_email_and_password.rb
341
341
  - db/migrate/20250425055419_add_delivery_price_to_delivery_orders.rb
342
+ - db/migrate/20250521084935_update_not_null_constraints_in_businesses.rb
342
343
  - lib/bscf/core.rb
343
344
  - lib/bscf/core/engine.rb
344
345
  - lib/bscf/core/version.rb