Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Ruby on Rails and eager loading model associations (to include or not to include)?

Adding attribute values to a join table record in a has_many :through association upon creation

Ensure that each instance of a model in Rails exists at most once in memory

How to make a complex SQL query with nested models?

Query for all users except for users with an ID in this collection

find_or_create ActiveRecord::RecordNotUnique rescue retry not working

how do I change a field of a model dynamically using a parameter on Rails?

Include column for has_many through

Why find_by scope returns an array when the result is nil

Building a simple calculator form in Rails 4

ActiveRecord boolean value returning "f", "t"

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