Skip to content

Fix "Validation failed" at seed data #36

@JuanVqz

Description

@JuanVqz
when running the seed data #db/seed.rb it returns this error:
ActiveRecord::RecordInvalid: Validation failed: Puzzle has already been taken (ActiveRecord::RecordInvalid)
/Users/juan/code/ombu/oss/ruby_or_rails/db/seeds.rb:70:in 'block (2 levels) in <main>'
/Users/juan/code/ombu/oss/ruby_or_rails/db/seeds.rb:69:in 'block in <main>'
/Users/juan/code/ombu/oss/ruby_or_rails/db/seeds.rb:58:in 'Array#each'
/Users/juan/code/ombu/oss/ruby_or_rails/db/seeds.rb:58:in '<main>'
Tasks: TOP => db:seed
can you help me fixing it?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions