Comments (4)
I still think we should do this just to clean up the migrations directory. A user cannot run rake db:migrate
from a clean installation without encountering errors. It should be fairly easy to convert the the current schema.rb over to a migration file. @jollopre @vyruss and @xsrust what do you think?
from roadmap.
Started working on this but it makes sense to wait until after the DB refactor. Work was done in a branch on CDLUC3/roadmap
from roadmap.
I'm doing a project that use DMP Roadmap and we need to have database pass migration before going to production. Does anyone have an estimate about when the database consolidation this ticket mention will be finished?
Also, I provide a possible temporary workaround here: #1774 but I'm not sure if it breaks anything
from roadmap.
@briri @xsrust @Yu-Chieh-Henry-Yang This should not be necessary. The schema file (db/schema.rb
) is a single migration that reflects the current DB structure. Creating a new, single migration would simply be a duplicate of the schema file.
The following rake tasks should be useful for almost all of the issues devs are likely to come across:
rake db:migrate
should only be necessary when you have an existing DB that has fallen behind the schema at HEAD. If there are issues preventing those migrations from running, these should be added as issues with the bug label.
rake db:reset # Drop DB, create DB again, and load the schema to the current version
rake db:schema:load # Load a schema.rb file into the database
rake db:create # Creates the database from DATABASE_URL or config/database.yml for the current RAILS_ENV
rake db:seed # Load the seed data from db/seeds.rb (ONLY FOR DEVELOPMENT)
rake db:setup # Create the database, load the schema, and initialize with the seed data (use db:reset to also drop the database first)
rake db:drop # Drops the database from DATABASE_URL or config/database.yml for the current RAILS_ENV (use db:drop:all to drop all databases in the ...
rake db:migrate:status # Display status of migrations
rake db:rollback # Rolls the schema back to the previous version (specify steps w/ STEP=n)
from roadmap.
Related Issues (20)
- Template Search issue HOT 1
- [ApiClients] Plan access rights HOT 1
- question text in docx export fails sometimes, depending on the html HOT 6
- Upgrade Ruby to 3.0
- Upgrade Rails to 7.x
- Edit template: You cannot add a 'Default Value' to a Text Field question
- remove the extra Affiliation row in csv download
- the latest version of wkhtmltopdf-binary hasn't added support to Ubuntu 22.04, thus will adjust Github Actions
- routes.rb should have a unites style of using single quotes
- Latest 'mail' gem version triggers "Uninitialized constant Mail::TestMailer (NameError)"
- Add CHANGELOG.md and danger Github action HOT 1
- Helpdesk and Google Analytics Tracker needs to be entered again in order to save HOT 1
- User.archive does not remove entries in the identifiers table
- Enable "Research output" on template level HOT 4
- Allow for more than one shibboleth login route per organization
- Google no longer offers the Helvetica font HOT 1
- PR 3105 reverse for pagination? HOT 14
- Docker? HOT 9
- [FEATURE] Disable mandatory account creation when signing in with institutional credentials. HOT 2
- Disable debug checking for rubocop >=1.45.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roadmap.