solidus

https://github.com/solidusio/solidus

Ruby

🛒 Solidus, the open-source eCommerce framework for industry trailblazers.

Spree::Migrations#check

Puts warning when any engine migration is not present on the Rails app
db/migrate dir

First split:

  ["20131128203548", "update_name_fields_on_spree_credit_cards.spree.rb"]

Second split should give the engine_name of the migration

  ["update_name_fields_on_spree_credit_cards", "spree.rb"]

Shouldn't run on test mode because migrations inside engine don't have
engine name on the file name

Source | Google | Stack overflow

Edit

git clone [email protected]:solidusio/solidus.git

cd solidus

open core/lib/spree/migrations.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Spree--Migrations-check-for-pr


# Commit to git

git add core/lib/spree/migrations.rbgit commit -m "better docs for Spree::Migrations#check"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Spree--Migrations-check-for-pr

hub pull-request


# Celebrate!