Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

arel_table rails

Address.where( Address.arel_table[:created_at].lt( 5.days.ago ) ).to_sql
# SELECT "addresses".* FROM "addresses"  WHERE ("addresses"."created_at" < '2016-12-13 03:31:23.911914')
Source by rollout.io #
 
PREVIOUS NEXT
Tagged: #rails
ADD COMMENT
Topic
Name
4+9 =