Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

"TypeError: no implicit conversion of nil into String" when eager loading results

How do you get a list from complex active record has_many involved from a subset of downstream objects

Rails ActiveRecord: Is a combined :include and :conditions query possible?

How to copy a (Active)record between tables, partially?

Rails ActiveRecord group results into sub-collections by date

Multiple has_many :through

Active Record order by group size

Efficiently bulk-updating in ActiveRecord?

Why ActiveRecord automatically validates has_many association

Use Ruby's select method on a Rails relation and update it

Multiple query conditions in Rails - if they exist.

How to (massively) reduce the number of SQL queries in Rails app?

Whats the best way to get the nth to last record?

rails serialized array validation

In Yii2, how do I join a table to itself?

activerecord yii2 self-join

Rails 4: ActiveRecord-style I18n on a non-ActiveRecord object?

Rails: What's the difference between ActiveRecord::Base.transaction and MyClass.transaction?

Problems with infinite time range in Rails

Multiple Associations to Same Model

How can I transparently modify an ActiveRecord method in a model?