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

CHECK ((fees_discount >= (0)::numeric)) generates Unknown type: #<IdentNode:0xaaa> (RuntimeError) #12

Open
jean-francois-labbe opened this issue Oct 21, 2013 · 1 comment
Assignees

Comments

@jean-francois-labbe
Copy link
Contributor

I have this error after running: rails generate reactive_record:install

/home/user/.gem/ruby/2.0.0/gems/reactive_record-0.0.2/lib/code_generator.rb:82:in `initialize': Unknown type: #<IdentNode:0x007f4dadb40da0> (RuntimeError)
    from /home/user/.gem/ruby/2.0.0/gems/reactive_record-0.0.2/lib/parser.rb:251:in `new'
    from /home/user/.gem/ruby/2.0.0/gems/reactive_record-0.0.2/lib/parser.rb:251:in `_reduce_8'
    from /home/user/.rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/racc/parser.rb:258:in `_racc_do_parse_c'
    from /home/user/.rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/racc/parser.rb:258:in `do_parse'
    from /home/user/.gem/ruby/2.0.0/gems/reactive_record-0.0.2/lib/parser.rb:25:in `parse'
    from /home/user/.gem/ruby/2.0.0/gems/reactive_record-0.0.2/lib/reactive_record.rb:70:in `block in parse_constraint'
    from /home/user/.gem/ruby/2.0.0/gems/reactive_record-0.0.2/lib/reactive_record.rb:62:in `map'
    from /home/user/.gem/ruby/2.0.0/gems/reactive_record-0.0.2/lib/reactive_record.rb:62:in `generate_constraints'
    from /home/user/.gem/ruby/2.0.0/gems/reactive_record-0.0.2/lib/reactive_record.rb:18:in `model_definition'
    from /home/user/.gem/ruby/2.0.0/gems/reactive_record-0.0.2/lib/generators/reactive_record/install_generator.rb:16:in `block in create_models'
    from /home/user/.gem/ruby/2.0.0/gems/reactive_record-0.0.2/lib/generators/reactive_record/install_generator.rb:14:in `each'
    from /home/user/.gem/ruby/2.0.0/gems/reactive_record-0.0.2/lib/generators/reactive_record/install_generator.rb:14:in `create_models'
    from /home/user/.gem/ruby/2.0.0/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
    from /home/user/.gem/ruby/2.0.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
    from /home/user/.gem/ruby/2.0.0/gems/thor-0.18.1/lib/thor/invocation.rb:127:in `block in invoke_all'
    from /home/user/.gem/ruby/2.0.0/gems/thor-0.18.1/lib/thor/invocation.rb:127:in `each'
    from /home/user/.gem/ruby/2.0.0/gems/thor-0.18.1/lib/thor/invocation.rb:127:in `map'
    from /home/user/.gem/ruby/2.0.0/gems/thor-0.18.1/lib/thor/invocation.rb:127:in `invoke_all'
    from /home/user/.gem/ruby/2.0.0/gems/thor-0.18.1/lib/thor/group.rb:233:in `dispatch'
    from /home/user/.gem/ruby/2.0.0/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
    from /home/user/.gem/ruby/2.0.0/gems/railties-4.0.0/lib/rails/generators.rb:156:in `invoke'
    from /home/user/.gem/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/generate.rb:11:in `<top (required)>'
    from /home/user/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
    from /home/user/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
    from /home/user/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
    from /home/user/.gem/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
    from /home/user/.gem/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:49:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'
@twopoint718
Copy link
Owner

Sorry about the long delay, I'll take a look at this tomorrow.

@ghost ghost assigned twopoint718 Nov 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants