Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Rails 5: Best way to iterate through a polymorphic model and find the top level parent?

Rails 3. How to remove duplicate associated records from query result?

Ruby On Rails: One-to-Many with One-to-One

Rails ActiveRecord not converting time to UTC but saving unconverted time as UTC

Can't figure out how to rescue ActiveRecord::StatementInvalid error in Rails

why is this rails association loading individually after an eager load?

Seemingly redundant ActiveRecord has_many definition

Rails - Adding a bi-directional relationship

How do I prevent Rails from creating a session?

How can I generate a select from an aliased table in Arel?

Upgrading to Rails 3.2.2: How to solve the 'undefined method for Syck::DomainType' error related to the Delayed Job gem?

Rails update_attribute isn't saving

Rails 5 active record query where date range overlaps with other date range

Do Rails 3 Active Record dynamic find_or_create finder methods have some undocumented inconsistencies?

mongoid update_attributes changed?

Order with a has_many relationship

Is there a way to combine where and where.not into one condition in Rails?