mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
72f584942d
This reverts commit 7d49707c4b.
761 B
761 B
Database
Code Style
Database Migrations
- Follow Rails migration conventions
- Migrations are "squashed" between major releases (see
docs/development/migrations/)
Commands
Local
bundle exec rails g migration MigrationName # Generate a migration
bundle exec rails db:migrate # Run migrations
bundle exec rails db:rollback # Rollback last migration
bundle exec rails db:seed # Seed sample data
Docker
bin/compose exec backend bundle exec rails db:migrate # Run migrations
bin/compose exec backend bundle exec rails db:seed # Seed data
Important Note
CRITICAL: config/database.yml must NOT exist when using Docker (rename or delete it)