rake-task Questions
2
Solved
I have a rails app that has a particular table where the data and even the structure is dynamically generated outside of rails and ruby. This is by design, it is a special table where the structure...
Rosemarie asked 10/10, 2012 at 23:27
2
Solved
I'm writing a rake task that would be called every minute (possibly every 30 seconds in the future) by Whenever, and it contacts a polling API endpoint (per user in our database). Obviously, this i...
Aeropause asked 7/10, 2012 at 10:12
1
Solved
AS the guides, the command used to prepare test database is
bundle exec rake db:test:prepare
However, I have found that following command also works & created the test db for me.
bundle exe...
Torsibility asked 28/8, 2012 at 10:2
2
Solved
Are the scripts from config/initializers executed when I run rake task?
Elias asked 16/7, 2012 at 17:30
2
Solved
I am interested in running a very long running rake task, one that would take hours to complete and I am interested in learning about best practices for dealing with this problem.
Possible solutio...
Kelwin asked 26/3, 2012 at 17:59
3
Solved
I'm generating test tasks dynamically based on existing test files in a Rakefile. Consider you have various unit test files named after the pattern test_<name>.rb. So what I'm doing is creati...
0
I have rails 3.1, I am trying to populate data with seeds.rb
I have a model Country which is migrated into a countries table
But it seems that rails can't see Country model from seeds.rb
I get thi...
Bobbery asked 25/12, 2011 at 8:24
2
Solved
I am using Ruby Enterprise Edition for my project. When I check all my rake task by run the command rake -T , I got the following error message:
You have already activated rake 0.9.2.2, but your G...
Atc asked 8/11, 2011 at 12:22
1
Solved
How can I specify a directory for dumping/loading my db to yaml?
rake db:data:dump_dir
created
db/2011-08-31_14:10:57_+0100/
and
rake db:data:load_dir
No such file or directory - <RAILS...
Dumbfound asked 31/8, 2011 at 13:31
1
Solved
I would like to define a Ruby (1.9.2)-on-Rails(3.0.5) rake task which adds a user to the User table. The file looks like this:
#lib/tasks/defaultuser.rake
require 'rake'
namespace :defaultuser do
...
Helper asked 10/3, 2011 at 19:45
1
Solved
I can put my custom rake tasks in lib/tasks/, but where are the built-in ones (i.e. db:migrate, db:seed, etc) stored?
I looked in: [INSTALLATION_DIRECTORY]/gems/rails-[VERSION]/lib/tasks but could...
Highflown asked 19/2, 2011 at 15:8
© 2022 - 2024 — McMap. All rights reserved.