-
Following is a example: class ChongWenBao < BaseModel
enum Option
Chong = 1
Wen = 2
Bao = 3
end
table do
column chong_2023 : Option
end
end It raise error like this: Fix is simple: class ChongWenBao < BaseModel
enum Option
Chong = 1
Wen = 2
Bao = 3
end
table do
column chong_2023 : ::ChongWenBao::Option
end
end Buy it should work without qualified, as following example: class Foo
enum Bar
X = 1
Y = 2
end
def self.table(&)
end
table do
x = Bar::X
end
end |
Beta Was this translation helpful? Give feedback.
Answered by
jwoertink
May 29, 2024
Replies: 1 comment 1 reply
-
I guess the reason is |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Correct. The type isn't resolved in scope, so you have to use the full node path.