On Wednesday, October 12, 2016 at 10:42:38 AM UTC-7, Alexander Birkner
wrote:
>
> Hello,
>
> we are migrating our existing backend from PHP to Ruby.
> We are using Sequel with Models but we can't do some queries because there
> is no way to use the MySQL function UNIX_TIMESTAMP.
>
> I would like
Couldn’t use use Sequel.function(:unix_timestamp)? It’s been a few months
since I’ve written DB code, but that seems like it would work.
-a
On Wed, Oct 12, 2016 at 1:09 PM, Alexander Birkner
wrote:
> Hello,
>
> we are migrating our existing backend from PHP to Ruby.
>
Hello,
we are migrating our existing backend from PHP to Ruby.
We are using Sequel with Models but we can't do some queries because there
is no way to use the MySQL function UNIX_TIMESTAMP.
I would like to create a query like this:
Service.where(
:field_1 => 0,
:field_2 => 0,