Reputation: 1159
I'm running a (previously working fine) seed file like so:
I check to see if there are pending migrations with rake db:migrate:status
and all migrations are "up".
For additional context, here's what led me to this point:
bin/rake db:create db:schema:load
All goodMore Context
-Ruby 2.3.1 -Rails 4.2.7.1 -Postgresql 9.6.2
Upvotes: 2
Views: 959
Reputation: 7522
It doesn't look like you actually have a problem; abort_if_pending_migrations
just happens to be the last trace line that even a successful seed outputs. A fully-working Rails env on my machine spits out the same output, but works just fine (complete with 0 error code):
$ be rake db:seed --trace
** Invoke db:seed (first_time)
** Execute db:seed
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:abort_if_pending_migrations
$ echo $?
0
For the record, it's expected for db:seed
to normally print no output.
Upvotes: 2