currently exists user with has_many project
but now i want to update project has_many user and user has_many project.
but i am getting error- Could not find table 'projects_users'
in project.rb
has_and_belongs_to_many :users
user.rb
has_and_belongs_to_many :projects
Generated migration
rails g migration CreateProjectsUsersJoinTable
Getting error as-
Could not find table 'projects_users'
on index#controller line - @projects = current_user.projects