Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Turn SQL query into ActiveRecord Relation

How to make associations work in built and unsaved objects?

Representing ecommerce products and variations cleanly in the database

Create association before record is saved

Fixing this Error: NameError (uninitialized constant ActiveRecord::ConnectionAdapters::Mysql2Adapter::Column)

Are you allowed to use a find_each query with an includes statement?

Rails has_many custom ActiveRecord Association

What's the Rails 3 replacement for ActiveRecord::Errors?

How to do has_many with a model that is in a namespace

Handling Complex WHERE clauses with a PHP Query Builder

Rails Arel selecting distinct columns

Empty array as default for active_record serialized attribute

rails, how to alias a relation in model?

Rails Search ActiveRecord with Logical Operators

find_by_sql to something that returns an activeRecords relation

Elegant PostgreSQL Group by for Ruby on Rails / ActiveRecord

Use Arel for a nested set & join query and convert to ActiveRecord::Relation

limit the number of objects returned in a has_many

When should I validate the presence of an ActiveRecord association object vs its id?

Rails has_many through aliasing with source and source_type for multiple types