propel_authentication 0.3.1 → 0.3.1.1
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/CHANGELOG.md +8 -0
- data/lib/generators/propel_authentication/install_generator.rb +14 -5
- data/lib/propel_authentication.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab07de559d01cd814a50a27f9efa81400322e72c124eb7d23ff0ef5c7b815e49
|
4
|
+
data.tar.gz: 5f2192a1383654c5a871f1377d8e70a9622a8fbf27769dc5cc29b63f14250092
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95ed0ee1e549419f6b2aeca658a8ca1fd1bc30472280115a2ff25e9d9a983df3da3c1d408e29138d059880320416c212528e7f89eaa1158e7a590f28b3837ce9
|
7
|
+
data.tar.gz: bf476f4b9eb72e859feb34adb3bb12d28ec1b21b156e7764e410af7dc3f5f78fd635e24e61d6f5e9d3ee6fec4a71edde59c275dabf34fdeb925f919ef056c531
|
data/CHANGELOG.md
CHANGED
@@ -13,6 +13,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
13
13
|
- Session management and device tracking
|
14
14
|
- Advanced password policies
|
15
15
|
|
16
|
+
## [0.3.1.1] - 2025-09-11
|
17
|
+
|
18
|
+
### 🐛 Bug Fixes
|
19
|
+
- **PostgreSQL Migration Compatibility**: Fixed migration generation issues affecting PostgreSQL databases
|
20
|
+
- Enhanced migration templates for agencies, agents, organizations, and users to work correctly with PostgreSQL
|
21
|
+
- Fixed foreign key constraint generation for PostgreSQL compatibility
|
22
|
+
- Corrected multi-tenant migration templates for better PostgreSQL support
|
23
|
+
|
16
24
|
## [0.3.1] - 2025-09-11
|
17
25
|
|
18
26
|
### 🔧 Installation & Configuration Improvements
|
@@ -76,12 +76,16 @@ module PropelAuthentication
|
|
76
76
|
def copy_authentication_models
|
77
77
|
# Detect rendering engine for conditional facet generation
|
78
78
|
@rendering_engine = detect_rendering_engine
|
79
|
-
|
80
|
-
copy_users_model
|
81
|
-
copy_invitations_model
|
79
|
+
# Organizations must be created first if required (users depend on organizations)
|
82
80
|
copy_organizations_model if organization_required?
|
81
|
+
# Agencies must be created before agents and users (if agency auth is enabled)
|
83
82
|
copy_agencies_model if agency_required?
|
83
|
+
# Users can now be created (organizations and agencies exist)
|
84
|
+
copy_users_model
|
85
|
+
# Agents depend on users and agencies
|
84
86
|
copy_agents_model if agency_required?
|
87
|
+
# Invitations depend on users and organizations
|
88
|
+
copy_invitations_model
|
85
89
|
end
|
86
90
|
|
87
91
|
def copy_authentication_concerns
|
@@ -183,11 +187,16 @@ module PropelAuthentication
|
|
183
187
|
end
|
184
188
|
|
185
189
|
def copy_authentication_migrations_and_fixtures
|
186
|
-
|
187
|
-
copy_invitations_migration_and_fixtures
|
190
|
+
# Organizations must be created first if required (users depend on organizations)
|
188
191
|
copy_organizations_migration_and_fixtures if organization_required?
|
192
|
+
# Agencies must be created before agents and users (if agency auth is enabled)
|
189
193
|
copy_agencies_migration_and_fixtures if agency_required?
|
194
|
+
# Users can now be created (organizations and agencies exist)
|
195
|
+
copy_users_migration_and_fixtures
|
196
|
+
# Agents depend on users and agencies
|
190
197
|
copy_agents_migration_and_fixtures if agency_required?
|
198
|
+
# Invitations depend on users and organizations
|
199
|
+
copy_invitations_migration_and_fixtures
|
191
200
|
end
|
192
201
|
|
193
202
|
def copy_database_seeds
|