# rake command not responding

**URL:** <https://discuss.rubyonrails.org/t/rake-command-not-responding/62187>\
**Category:** rubyonrails-talk\
**Created:** [January 2, 2012, 4:33am UTC](https://discuss.rubyonrails.org/t/rake-command-not-responding/62187 "2012-01-02T04:33:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [January 2, 2012, 4:33am UTC](https://discuss.rubyonrails.org/t/rake-command-not-responding/62187/1 "2012-01-02T04:33:57Z")

</div>

I needed a migration to create the join table that can connect the model category with the model Article. So, I run the following command:

$ rails generate migration create\_articles\_categories

And then I added the appropriate fields.

class CreateArticlesCategories \< ActiveRecord::Migration &nbsp;&nbsp;def self.up &nbsp;&nbsp;&nbsp;&nbsp;create\_table :articles\_categories, :id =\> false do |t| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t.references :article &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t.references :category &nbsp;&nbsp;&nbsp;&nbsp;end &nbsp;&nbsp;end

def self.down &nbsp;&nbsp;&nbsp;&nbsp;drop\_table :articles\_categories &nbsp;&nbsp;end end

And then I run the migrations:

$ rake db:migrate

But then no response was shown for long.

And after that, anytimes when I run the rake command, no response was shown. May I ask if I have done anything wrong here?

Any help much appreciated.

---

<div class="post-metadata">

**Author:** ![Peter\_Vandenabeele1](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@Peter\_Vandenabeele1](https://discuss.rubyonrails.org/u/Peter_Vandenabeele1)\
**Post date:** [January 2, 2012, 6:25am UTC](https://discuss.rubyonrails.org/t/rake-command-not-responding/62187/2 "2012-01-02T06:25:35Z")

</div>

Try

rake --trace

Peter

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [January 4, 2012, 12:22pm UTC](https://discuss.rubyonrails.org/t/rake-command-not-responding/62187/3 "2012-01-04T12:22:46Z")

</div>

Hi Peter

Not even rake --trace works as well. I have tried to reinstall the Rubygem. But it seems not related to this.

Kindly wonder if anyone here has encountered this problem before?

Any help appreciated please.

Peter Vandenabeele wrote in post #1039113:

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [January 15, 2012, 2:27pm UTC](https://discuss.rubyonrails.org/t/rake-command-not-responding/62187/4 "2012-01-15T14:27:32Z")

</div>

Hi Peter

I found the cause. It's somehow because I have installed the rvm. But after removing those source codes in the ~/.bash\_profile and ~/.bashrc files.

Anyways, it is working now.

mapreferee ruby wrote in post #1039382:
