Hey all, I'm trying to create a task that prepare the environment to start programming. To do so, I created a task like this *task :setup_env => ['db:reset', 'db:migrate', 'db:test:prepare']* and observed that after execute * rake setup_env*, it never execute db:test:prepare properly. In order to get the schema cloned to test db, I have to execute rake *db:test:prepare*manually after *rake setup_env* I also noticed that if I also write the task like *task :setup_env => ['db:reset', 'db:test:prepare'] *or *task :setup_env => ['db:migrate', 'db:test:prepare']* it still skips db:test:prepare. Instead of using task dependency, I also tried executing Rake::Task['db:test:prepare'] and it doesn't execute as well. Does anyone have an idea? Thanks.
on 2013-02-28 04:14
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.