2024-04-15 11:47:40 -05:00
|
|
|
# Migrations Tooling
|
|
|
|
|
2024-09-09 10:14:39 -05:00
|
|
|
## Command line interface
|
|
|
|
|
|
|
|
```bash
|
|
|
|
./bin/cli help
|
|
|
|
```
|
|
|
|
|
|
|
|
## Converters
|
|
|
|
|
|
|
|
Public converters are stored in `lib/converters/`.
|
|
|
|
If you need to run a private converter, put its code into a subdirectory of `private/converters/`
|
|
|
|
|
2024-04-15 11:47:40 -05:00
|
|
|
## Development
|
|
|
|
|
2024-09-09 10:14:39 -05:00
|
|
|
### Installing gems
|
|
|
|
|
|
|
|
```bash
|
|
|
|
bundle config set --local with migrations
|
|
|
|
bundle install
|
|
|
|
```
|
|
|
|
|
|
|
|
### Updating gems
|
|
|
|
|
|
|
|
```bash
|
|
|
|
bundle update --group migrations
|
|
|
|
```
|
|
|
|
|
2024-04-15 11:47:40 -05:00
|
|
|
### Running tests
|
|
|
|
|
|
|
|
You need to execute `rspec` in the root of the project.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
bin/rspec --default-path migrations/spec
|
|
|
|
```
|