Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks
sandbergja opened this issue Aug 9, 2024 · 0 comments
Labels

Comments

@sandbergja
Copy link
Member

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

  • rake db:seed does not error
  • rake db:seed adds data that you can see in the UI locally
  • The README lists rake db:seed as a step in setting up a local development instance
@sandbergja sandbergja added the bug label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant