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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5e753307eddd088b9766de57d13afe6cc4314ff0397e6f41cfe52186d590600
|
4
|
+
data.tar.gz: ef5ae10b4107c6e55a15f5510c9752fed060f72f76507d2f7b1ba6717854838c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
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"
|
@@ -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
|
data/lib/bscf/core/version.rb
CHANGED
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.
|
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
|