I have started my tutorials on Ruby on rails just a week ago I have got a doubt please guide me guys.
Rake
Rake
utility allows you to create a job/task which uses rails environment. So say, you want to count the votes a user has given to an article and save it somewhere. You write a rake job, in which you can use Rails models and other helpers and get it done without going away from Rails.
I want to check all the SQL INSERT or CREATE lines executed when we do something like:
>$ bundle exec rake db:reset
>$ bundle exec rake db:seed
>$ bundle exec rake test:prepare
Is there a way I can do check the SQL commands in Ruby on Rails?
Aucun commentaire:
Enregistrer un commentaire