Open sandbergja opened 1 month ago
I can run
bundle exec rake servers:start bundle exec rake db:seed
And get a locally running system with some data.
bundle exec rake db:seed fails with the following error:
bundle exec rake db:seed
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>'
bundle exec rake servers:start
Harder to check the changes you're doing in development.
rake db:seed
Expected behavior
I can run
And get a locally running system with some data.
Actual behavior
bundle exec rake db:seed
fails with the following error:Steps to replicate
bundle exec rake servers:start
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 errorrake db:seed
adds data that you can see in the UI locallyrake db:seed
as a step in setting up a local development instance