You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I should add that I have another table with a column with the same enum type (coding_restriction) that works fine, presumably because it's not an array
The text was updated successfully, but these errors were encountered:
I have a Rails 6 application that I'm testing JRuby with and I ran into an issue with a column in PostgreSQL (9.6) that has a type
enum[]
.Everything works fine if I convert the column into a
string[]
, and theenum[]
type works in MRI with thepg
gem.Here is how I created the column:
I get an error that
method [] does not exist on type NilClass
whenever I try to use myExpenseType
class:That's the entire stack trace :)
EDIT:
I should add that I have another table with a column with the same enum type (
coding_restriction
) that works fine, presumably because it's not an arrayThe text was updated successfully, but these errors were encountered: