solidusio / solidus_auth_devise

🔑 Devise authentication for your Solidus store.
http://solidus.io
BSD 3-Clause "New" or "Revised" License
53 stars 128 forks source link

Use proper name for add_migrations #198

Closed peterberkenbosch closed 3 years ago

peterberkenbosch commented 3 years ago

Running the installer on a fresh master (v2.11) Solidus the migrations are not copied in the Rails application.

We need to use the proper engine name in the FROM parameter since the updated installer in Solidus is running the default install generator for solidus_auth_devise if this option is choosen. When running rails generate solidus:auth:install --skip_migrations=false it will run the add_migrations script, but this will not install any migrations since this is not the right engine_name.

also see https://github.com/solidusio/solidus/blob/master/core/lib/generators/solidus/install/install_generator.rb#L127

This commit fixes that.