Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

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

How can I build a front end for querying a Redshift database (hopefully with Rails)

how to call a active record named scope with a string

How can I rollback a rails save/transaction?

Rails ActiveRecord - update_all: how to update multiple fields at once with mixed type of arguments

How do I use functions like CONCAT(), etc. in ARel?

ruby activerecord arel

How do you set a not null constraint in activerecord for ruby?

Heroku + Rails + PG: ActiveRecord::StatementInvalid (PG::ConnectionBad: PQconsumeInput() SSL connection has been closed unexpectedly

Rails models in subfolders and relationships

Codeigniter:$query->free_result() when using active record?

Get changed attributes on after_update callback

Including a virtual attribute in the respond_with hash