diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2013-06-21 03:46:49 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2013-06-23 14:22:12 +0200 |
commit | 84fd0aada42c01abf40424fea5b32df64c597d97 (patch) | |
tree | 4d015544b2a8544009ce3d6849520d2557ed4f10 /ci/travis.rb | |
parent | e1f4f644344199bba7a060fe1ad27cde2e8d81e9 (diff) | |
download | rails-84fd0aada42c01abf40424fea5b32df64c597d97.tar.gz rails-84fd0aada42c01abf40424fea5b32df64c597d97.tar.bz2 rails-84fd0aada42c01abf40424fea5b32df64c597d97.zip |
Change a way ActiveRecord's config is prepared for rake tasks
In commit d1d7c86d0 I moved setting migrations paths into activerecord's
railtie to remove Rails dependency on databases.rake. However, it
introduced a regression, ENGINE_PATH was not available at the moment, so
engine's migrations where not added properly to paths. Fix was added
at 97a4a771, but it changes a way things work from using ENGINE_PATH to
APP_RAKEFILE. Additionally, the config runs when the code loads, while
previously it ran in the db:load_config rake task
In order to make it more in pair with original version this commit
changes the config to run only on load_config task. This code uses the
fact that defining a task in rake does not overwrite, but only appends.
It also allows to get back to checking for ENGINE_PATH
Diffstat (limited to 'ci/travis.rb')
0 files changed, 0 insertions, 0 deletions