Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Rails filtering array of objects by attribute value

ActiveRecord.find(array_of_ids), preserving order

How to implement a unique index on two columns in rails

How to determine if a record is just created or updated in after_save

How to execute a raw update sql with dynamic binding in rails

Overriding id on create in ActiveRecord

Rails create or update magic?

Using helpers in model: how do I include helper dependencies?

Converting an array of objects to ActiveRecord::Relation

find() with nil when there are no records

Rails - Validate Presence Of Association?

Rails 5: ActiveRecord OR query

Find all records which have a count of an association greater than zero

ActiveRecord, has_many :through, and Polymorphic Associations

Eager load polymorphic

Find rows with multiple duplicate fields with Active Record, Rails & Postgres

How to do a LIKE query in Arel and Rails?

How can I see the SQL that will be generated by a given ActiveRecord query in Ruby on Rails

Rails: Why does find(id) raise an exception in rails? [duplicate]

ActiveRecord: List columns in table from console