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

PG::InvalidTextRepresentation: ERROR: invalid input value for enum excellence_award_track: "social_impact" #18

Open
ltfschoen opened this issue Aug 17, 2024 · 1 comment

Comments

@ltfschoen
Copy link

unable to migrate the database without error

rake db:create
rake db:migrate
== 20240520144352 CreateExcellenceTeams: migrating ============================
-- create_table(:excellence_teams)
   -> 0.0105s
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled: (StandardError)

PG::InvalidTextRepresentation: ERROR:  invalid input value for enum excellence_award_track: "social_impact"
CONTEXT:  unnamed portal parameter $1 = '...'
@ltfschoen ltfschoen reopened this Aug 17, 2024
@ltfschoen
Copy link
Author

ltfschoen commented Aug 17, 2024

quick fix so far just to get it to migrate successfully is to just remove , social_impact: "social_impact" here https://github.com/ethb3rlin/Submi-ions/blob/main/app/models/submission.rb#L39, and remove social_impact: "Social Impact" here https://github.com/ethb3rlin/Submi-ions/blob/main/app/models/submission.rb#L78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant