abizvn-clients 0.1.0 → 0.2.0
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 +4 -4
- data/app/models/abizvn/clients/client.rb +1 -1
- data/app/models/abizvn/clients/domain.rb +1 -1
- data/db/migrate/20250311104419_update_domains_client_to_optional.rb +5 -0
- data/db/migrate/20250311111640_remove_unique_for_admin_user_email_on_clients.rb +5 -0
- data/lib/abizvn/clients/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6170d0719eb324660ab7adc0393320228c280a747d36a158fe61346e320a078c
|
4
|
+
data.tar.gz: e70f0b46daa2fd04851568604c8b26ce9188c0e138fdc42a3e307ac1a51c9f83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbdf8951082607a6605939c253cca6b67289bdd2b0f94ac5447e5d05fb4eae97b8ce0b8ec2746a09f54414e4271085f36ec63285e478b2365c5c1e76dceb5e5f
|
7
|
+
data.tar.gz: 12cb07f0f76b2575b02daf96e36fbf34a2a579e6e8c343fad91c2ee867b21f505c952baf3907dd0fc7597075a7dc185decad1da4659d86d66c3845ed010d44d4
|
@@ -8,7 +8,7 @@ module Abizvn
|
|
8
8
|
has_many :domains, class_name: 'Abizvn::Clients::Domain', foreign_key: :client_id
|
9
9
|
accepts_nested_attributes_for :domains, allow_destroy: true
|
10
10
|
|
11
|
-
validates :admin_user_email, presence: true,
|
11
|
+
validates :admin_user_email, presence: true, 'valid_email_2/email': true
|
12
12
|
|
13
13
|
validates :name, presence: true, uniqueness: { case_sensitive: false }, length: { maximum: 128 }
|
14
14
|
validates :contact_email, 'valid_email_2/email': true
|
@@ -5,7 +5,7 @@ module Abizvn
|
|
5
5
|
|
6
6
|
self.table_name = 'clients_management_domains'
|
7
7
|
|
8
|
-
belongs_to :client, class_name: 'Abizvn::Clients::Client', foreign_key: 'client_id'
|
8
|
+
belongs_to :client, class_name: 'Abizvn::Clients::Client', foreign_key: 'client_id', optional: true
|
9
9
|
|
10
10
|
validates :name, presence: true, uniqueness: { case_sensitive: false }, length: { maximum: 255 }
|
11
11
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: abizvn-clients
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan
|
@@ -133,6 +133,8 @@ files:
|
|
133
133
|
- config/routes.rb
|
134
134
|
- db/migrate/20250208042258_adding_clients_table.rb
|
135
135
|
- db/migrate/20250208072035_adding_client_domains_table.rb
|
136
|
+
- db/migrate/20250311104419_update_domains_client_to_optional.rb
|
137
|
+
- db/migrate/20250311111640_remove_unique_for_admin_user_email_on_clients.rb
|
136
138
|
- lib/abizvn/clients.rb
|
137
139
|
- lib/abizvn/clients/engine.rb
|
138
140
|
- lib/abizvn/clients/version.rb
|