#1337 new
Postmodern

unable to use Discriminator in dm-migrations

Reported by Postmodern | June 25th, 2010 @ 06:59 PM

I am unable to use the Discriminator type with explicit migrations, in that it uses a lambda for the default value.

/home/hal/.rvm/gems/jruby-1.5.1/gems/data_objects-0.10.2/lib/data_objects/quoting.rb:26:in `quote_value': Don't know how to quote Proc objects (#<Proc:0x184d7ee@/home/hal/.rvm/gems/jruby-1.5.1/gems/dm-core-1.0.0/lib/dm-core/property/discriminator.rb:6>) (RuntimeError)
    from /home/hal/.rvm/gems/jruby-1.5.1/gems/dm-migrations-1.0.0/lib/dm-migrations/adapters/dm-do-adapter.rb:232:in `property_schema_statement'
    from /home/hal/.rvm/gems/jruby-1.5.1/gems/dm-migrations-1.0.0/lib/dm-migrations/adapters/dm-sqlite-adapter.rb:66:in `property_schema_statement'
    from /home/hal/.rvm/gems/jruby-1.5.1/gems/dm-migrations-1.0.0/lib/dm-migrations/sql/table_creator.rb:93:in `build_type'
    from /home/hal/.rvm/gems/jruby-1.5.1/gems/dm-do-adapter-1.0.0/lib/dm-do-adapter/adapter.rb:260:in `with_connection'
    from /home/hal/.rvm/gems/jruby-1.5.1/gems/dm-migrations-1.0.0/lib/dm-migrations/sql/table_creator.rb:92:in `build_type'

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Pages