Top "Rake-task" questions

Task is the basic unit of work in a Rakefile.

Single step batch delete in Ruby on Rails

How to send such a query to database server from Rake task without removing record-by-record in "each" loop? delete from …

sql ruby-on-rails batch-file rake-task
rake db:migrate is being aborted due to rake version difference

I am getting the error rake db:migrate --trace rake aborted! You have already activated rake 10.1.1, but your Gemfile requires …

ruby-on-rails ruby rubygems gem rake-task
Invoke rake task with arguments from another task

I would like to be able to pass arguments for a task that I have to call from another task …

ruby-on-rails rake-task
Where to put helper functions for rake tasks and test files in Ruby on Rails?

In my Rails application I have a file sample_data.rb inside /lib/tasks as well as a bunch of …

ruby ruby-on-rails-3 ruby-on-rails-3.1 ruby-on-rails-3.2 rake-task
Rake task to list all migrations for a given model

On the terminal, is there a rake task to list all the migrations which have been run on a particular …

ruby-on-rails ruby-on-rails-3.2 rake rake-task
Removing whitespaces in a CSV file

I have a string with extra whitespace: First,Last,Email ,Mobile Phone ,Company,Title ,Street,City,State,Zip,Country, Birthday,…

ruby parsing csv rake-task
How to increment counter in Ruby loop

For my Rails application I am trying to build a rake task that will populate the database with 10 invoices for …

ruby-on-rails ruby rake-task
How can I export database structure from the db into migration file?

Is there a way to export database structure in the database from the rails application? I believe there is a …

ruby-on-rails rake rake-task
How do you declare a Rake task that depends on a parameterized task?

I have seen examples where a task has parameters and a dependency task like: task :name, [:first_name, :last_name] =&…

ruby rake rake-task
using rake to dump and load database

How can I specify a directory for dumping/loading my db to yaml? rake db:data:dump_dir created db/2011…

ruby-on-rails-3 rake rake-task