Im trying to create a HABTM association between my products and tags tables. I ran the automated migration in my terminal as:
rails generate migration create_products_tags_join_table
then
rake db:migrate
After I ran those commands I assumed that my migration file would look something like what I read on the http://guides.rubyonrails.org/association_basics.html But instead my migration file looks like this
class CreateProductsTagsJoinTable < ActiveRecord::Migration
def up
end
def down
end
end
Do I need to hard code in the migration within these methods and then run the rake db:migrate
command again?