I use rails 4 , and has to migrate folder under db/migrate,for example:
db/migrate/A , db/migrate/B .
I have success used A migration file create A database schema , used B migration file create B database schema .
But when i connect A database , and start my rails server , it check all my migration file under db/migrate..,and show the message :
"Migrations are pending. To resolve this issue, run: bin/rake db:migrate RAILS_ENV=development"
Anyone know how to solve this problem?
To resolve this issue, run:
bin/rake db:migrate RAILS_ENV=development
That will apply the migrations that are pending.