-
-
Notifications
You must be signed in to change notification settings - Fork 724
Troubleshooting your instance
Try running rails r script/prepare_imported_db.rb
– this will set various flags to allow us to use staging/production data in a development instance. Make sure the development
configuration in config/database.yml
is pointed towards the database you want to fix.
Try rake db:schema:load RAILS_ENV=development – Migrations provide forward and backward step changes to the database but some old migrations must be out-of-date with new changes and requirements. When you need to create your database from scratch or drop it and create it again, better run rake db:schema:load to load schema. Make sure the development
configuration in config/database.yml
is pointed towards the database you want to load the schema or you will be deleting another database with all the data.
If you are not sure about your db's state you can always recreate it:
bundle exec rake db:reset
This recreates it and runs the db:seed
task as well.
When it succeeds you can load some sample data with:
bundle exec rake dev:load_sample_data
If you still having problems with your database state you can always delete it and re-create it.
Make sure that the psql user has the superuser role and then run bundle exec rake db:setup db:test:prepare
. That should create the database and load the current schema.
Development environment setup
- Pipeline development process
- Bug severity
- Feature template (epic)
- Internationalisation (i18n)
- Dependency updates
Development
- Developer Guidelines
- The process of review, test, merge and deploy
- Making a great commit
- Making a great pull request
- Code Conventions
- Database migrations
- Testing and Rspec Tips
- Automated Testing Gotchas
- Rubocop
- Angular and OFN
- Feature toggles
- Stimulus and Turbo
Testing
- Testing process
- OFN Testing Documentation (Handbooks)
- Continuous Integration
- Parallelized test suite with knapsack
- Karma
Releasing
Specific features
Data and APIs
Instance-specific configuration
External services
Design