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 def self.up create_table :articles_categories, :id => false do |t| t.references :article t.references :category end end
def self.down drop_table :articles_categories 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.