impress/db/migrate/20240401124200_increase_username_length.rb
Emi Matchu 9ba94f9f4b chore: document legacy openneo_id migrations and update references
This commit completes the database consolidation cleanup by documenting
the historical migrations and updating all references to reflect the
single-database architecture.

Changes:
- db/openneo_id_migrate/README.md: Created comprehensive documentation
  explaining the history of the separate database and why these migrations
  are preserved but no longer runnable
- db/openneo_id_schema.rb: Deleted (no longer needed)
- README.md: Updated to reflect single-database architecture
  - Removed mentions of "two databases"
  - Updated "OpenNeo ID Database" section to "Authentication Architecture"
  - Added reference to historical context in db/openneo_id_migrate/README.md
- deploy/setup.yml: Removed openneo_id database creation and privileges
  for future deployments
- db/migrate/20240401124200_increase_username_length.rb: Updated comment
  to note this was historically paired with an openneo_id migration

The codebase now fully reflects the consolidated single-database architecture.
The legacy migration files in db/openneo_id_migrate/ are preserved for
historical reference only.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-02 07:02:43 +00:00

15 lines
554 B
Ruby

class IncreaseUsernameLength < ActiveRecord::Migration[7.1]
def change
# NOTE: This was originally paired with a migration to the legacy `openneo_id`
# database (see db/openneo_id_migrate/20240401124406_increase_username_length.rb).
# As of November 2025, the databases have been consolidated.
reversible do |direction|
direction.up {
change_column :users, :name, :string, limit: 30, null: false
}
direction.down {
change_column :users, :name, :string, limit: 20, null: false
}
end
end
end