jesjos / jesjos/simple_migrator

Reverse direction of control on Migratable#migrate

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Right now, a migratable object migrates itself using a migrator. It would probably make more sense to overload Migrator#migrate so that it can take either a migration name and a block or a migratable object.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading Migratable#migrate and Migrator#migrate to understand the current call direction and the existing migration-name-and-block form. Define the desired Migrator#migrate API for accepting either a migratable object or a migration name with a block, then verify that both forms preserve the expected migration behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.