This commit completes the migration to consolidate the openneo_id database into the main openneo_impress database. Changes: - AuthUser: Changed from AuthRecord to ApplicationRecord - AuthUser: Removed explicit table_name (Rails infers 'auth_users') - AuthUser: Removed all temporary write lock code - AuthUser: Added TODO comment about future table merge opportunity - User: Added TODO comment about simplifying remote_id relationship - AuthRecord: Deleted (no longer needed) - ApplicationController: Removed temporary rescue_from handler - database.yml: Removed openneo_id database configuration entirely - database.yml: Simplified from multi-database (primary:) to single-database structure The application now runs as a single-database Rails app. The auth_users table lives in the main openneo_impress database alongside the users table, with the remote_id relationship preserved. Next steps for production: 1. Deploy Phase 1 (write lock) 2. Run the CopyAuthUsersTableToMainDatabase migration 3. Deploy this commit (Phase 2) 4. Verify everything works 5. Drop the openneo_id database 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
28 lines
609 B
YAML
28 lines
609 B
YAML
development:
|
|
adapter: mysql2
|
|
host: <%= ENV.fetch("DB_HOST", "localhost") %>
|
|
database: openneo_impress
|
|
username: root
|
|
pool: 5
|
|
encoding: utf8mb4
|
|
collation: utf8mb4_unicode_520_ci
|
|
variables:
|
|
sql_mode: TRADITIONAL
|
|
|
|
test:
|
|
adapter: mysql2
|
|
host: <%= ENV.fetch("DB_HOST", "localhost") %>
|
|
database: openneo_impress_test
|
|
username: root
|
|
pool: 5
|
|
encoding: utf8mb4
|
|
collation: utf8mb4_unicode_520_ci
|
|
variables:
|
|
sql_mode: TRADITIONAL
|
|
|
|
production:
|
|
url: <%= ENV['DATABASE_URL_PRIMARY'] %>
|
|
encoding: utf8mb4
|
|
collation: utf8mb4_unicode_520_ci
|
|
variables:
|
|
sql_mode: TRADITIONAL
|