pulibrary / repecwp

Replacement App for https://github.com/pulibrary/wp_repec RePEC Working Papers
0 stars 0 forks source link

rake db:seed fails with ActiveRecord::RecordInvalid: Validation failed: Series must exist #128

Open sandbergja opened 1 month ago

sandbergja commented 1 month ago

Expected behavior

I can run

bundle exec rake servers:start
bundle exec rake db:seed

And get a locally running system with some data.

Actual behavior

bundle exec rake db:seed fails with the following error:

rake aborted!
ActiveRecord::RecordInvalid: Validation failed: Series must exist
/Users/sandbergj/repos/repecwp/db/seeds.rb:11:in `block in <top (required)>'
/Users/sandbergj/repos/repecwp/db/seeds.rb:10:in `<top (required)>'
/Users/sandbergj/.asdf/installs/ruby/3.1.3/bin/bundle:25:in `load'
/Users/sandbergj/.asdf/installs/ruby/3.1.3/bin/bundle:25:in `<main>'

Steps to replicate

  1. Clone this repo
  2. bundle exec rake servers:start
  3. bundle exec rake db:seed

Impact of this bug

Harder to check the changes you're doing in development.

Success criteria