I have a very very simple piece of code within a migration that I just
can't get to work. I've stripped it even further for the sake of
clarity in this example. Perhaps I've been staring at the code for too
long but it seems to me that this really shouldn't fail. I'm 99%
certain that this kind of thing worked before when using the following
(perhaps it's failing because I'm now on Ruby 1.9?) =>
...
def up
...
self[ :incoming_messages ].filter( ~{ :processed_at => nil }
).all.each do |message|
p self[ :outgoing_messages ].filter( :queued_at <= message[
:processed_at ] ).sql # this is line 13 in error as shown below
end
...
end
...
I get:
comparison of Symbol with Time failed
/home/clive/stuff/schema/012_alter-table_incoming-messages_add-actions.rb:13:in
`<='
How do I compare a column value with an inline value?
Dependencies: Ruby 1.9 // Sequel about-18-commits-after-3.8.0 // mysql
Any insights greatly appreciated.
Thanks,
Clive
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sequel-talk?hl=en.