Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

postgresql: select records where ALL associated records match condition

Rails Polymorphic Children

How do I explore the results of an ActiveRecord relation?

Rails ActiveRecord Model not updating in RSpec model spec

Translating a (slightly complex) raw SQL query to ActiveRecord/Arel?

Sum associated tables using Active Record

How to get calculated value in hash (attr_accessor) within ActiveRecord query in rails 4?

ActiveRecord erroneously escapes JSON string

How to list out all items in a nested table in Laravel

Rails ActiveRecord "maximum(:column)" ignores order

Why does rails change the type of the attribute _was value after it is set?

Find records which assoicated records do not belong to certain record

Call to undefined method app\models\Message::model()

Rails Active Record: How to reduce number of trips to database?

Ruby on Rails: Model.all.each vs find_by_sql("SELECT * FROM model").each?

How to find only Grandparent records where all grandchildren match some criteria in Rails?

Inserting an invalid ActiveRecord date to a MySQL database

Code Igniter catch errors on inserting data (Active Record)

Drop or Delete Schema Postgresql via controller Rails