Ruby on Rails and Rake problems: uninitialized constant Rake::DSL
I’m having a really frustrating issue: Rake is being dumb. Here’s how the problem comes about: $ rails new test_app $ rails generate … Read more
I’m having a really frustrating issue: Rake is being dumb. Here’s how the problem comes about: $ rails new test_app $ rails generate … Read more
After adding migration files in the db/migrate folder and running rake db:migrate, I want get back to the previous step, I think using … Read more
This question already has answers here: How to pass command line arguments to a rake task (20 answers) Closed 4 years ago. I … Read more
I am trying to create a custom rake task, but it seems I dont have access to my models. I thought this was … Read more
I have a rake task where I do some checks at the beginning, if one of the checks fails I would like to … Read more
What’s the best way to run scheduled tasks in a Rails environment? Script/runner? Rake? I would like to run the task every few … Read more
What does bundle exec rake db:migrate mean? Or just bundle exec rake <command> in general? I understand that bundle takes care of maintaining … Read more
I have a Rakefile that compiles the project in two ways, according to the global variable $build_type, which can be :debug or :release … Read more
I have a dev Ruby on Rails database full of data. I want to delete everything and rebuild the database. I’m thinking of … Read more
The difference between rake db:migrate and rake db:reset is pretty clear to me. The thing which I don’t understand is how rake db:schema:load … Read more