Comments (2)
Rails engines provide a $engine_name:install
that can be used on the first installation and any upgrade. It's idempotent for the migration files but isn't super smart, it just checks whether the same migration exist based on its class name.
We even have an explanation about this in the README, for people who roll up their migrations and then have our migrations re-appear: https://github.com/Shopify/maintenance_tasks/blob/eeee3f4ebfdeea048c2d3bb9897ca29c2cd93187/README.md#upgrading
While we could provide a special task for first installs (with a rolled up migration) and keep the current migrations for everyone else that need the "diff" migrations, ultimately this should be built in Rails so it can benefit every engine, and not just this one.
from maintenance_tasks.
Use bundler to check for and upgrade to newer versions. After installing a new version, re-run the install command:
Okay, that makes sense, so that folks can upgrade in a clear way. Thanks for the explainer
from maintenance_tasks.
Related Issues (20)
- Don't rescue errors raised in callbacks
- Update README demo video HOT 1
- Support for ActiveSupport Notifications HOT 4
- Placeholder text for custom attributes HOT 2
- [Low Priority] Dark mode HOT 2
- Configure queue per task HOT 5
- Set max_job_runtime in TaskJob instead of hijacking JobIteration's global config HOT 3
- Changing batch size on causes the job to skip records HOT 1
- Support zipped csv files in `csv_collection` HOT 6
- Adding the ability to tag tasks for filtering on the index page HOT 3
- Persist user email HOT 4
- Retry button
- Cursor based iteration HOT 6
- Multiple database shards HOT 3
- How do we set `limit`? HOT 8
- No callback is called after Interrupted -> Resumed HOT 5
- Release notes HOT 1
- Web UI and Rails API mode HOT 3
- CSV Task Failure: ActiveRecord::NotNullViolation Error on UUID record_id 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 maintenance_tasks.