Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
fix rake tasks for rails engine #64
Conversation
|
Hmm... mind adding a commit where you add this to the before_install:
- gem install bundler -v 1.17.3 |
|
@metaskills looks like I will rebase this one after that |
|
Yea, I can work on that in a few days. |
When you are developing rails engine which has connects with two databases you don't have ordinary rails tasks like
db:migratedb:structure:loadetc. They are moved intoappnamespace.so instead of
rake db:migrateyou need to rightrake app:db:migrate.when you use gem with
railtiethat has rake tasks in rails engine those task namespaced intoapptoo.Problem appears when you want to run another rake task inside of yours. For example when we inside
appnamespace we need to runapp:db:migrateinstead of `db:migrate.in this PR I've solved this problem in a same way as
active_recorddoes - just call tasks using name related to currentdbnamespace