We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
did add_column :interests, :status, :enum
migration ran, but got this in schema.rb where my table should have apeared:
# Could not dump table "interests" because of following StandardError # Unknown type 'enum' for column 'status'
The text was updated successfully, but these errors were encountered:
I think the issue here is that add_column doesn't work... pulled the very very latest and used change_table instead. works fine.
Sorry, something went wrong.
change_table also gave me the same error.
The enumerated column attribute must be declared as a STRING in the database schema.
Take a look at your DB in what type it is stored. Mine (SQLite) is stored as an 'enum' and it went borked during a migration rollback.
Hand-fix the DB and use :string instead of :enum in migration (despite the code suggests to me that this is handled).
No branches or pull requests
did add_column :interests, :status, :enum
migration ran, but got this in schema.rb where my table should have apeared:
The text was updated successfully, but these errors were encountered: