Search code examples
ruby-on-railsrubyrakedbmigrate

rake db:migrate is creating tables from other rails projects


I have created a new rails project and I have added a migration to create a table called blogs. When I ran rake db:migrate it created this table along with other tables I have set in different projects. Under db/migrate I have only 1 file with the migration I added, there's no reference in the project of the other tables, for some reason it is pulling the migrations from other projects and adding it to my DB project

Rails version: 5.1.4 Ruby version: 2.4.1


Solution

  • I just solved my issue, seems like Spring was mixing things up in my environment. Reference: https://github.com/rails/rails/issues/31529#issuecomment-353269787