I looked through many SO and google posts to generate a connection table migration for the has many and belongs to many association and nothing works.
All solutions generate an empty migration file.
I am using rails 3.2.13 and I have two tables: security_users and assignments . Here are some of my attempts:
rails generate migration assignments_security_users rails generate migration create_assignments_security_users rails generate migration create_assignments_security_users_join_table rails g migration create_join_table :products, :categories (following the official documentation) rails generate migration security_users_assignments security_user:belongs_to assignments:belongs_to
Can anyone tell how to create a join table migration between two tables?
ruby-on-rails ruby-on-rails-3 migration ruby-on-rails-4 jointable
gotqn Jul 20 '13 at 18:18 2013-07-20 18:18
source share