Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

How to get the original value of an attribute in Rails

Check if record exists from controller in Rails

ActiveRecord Query Union

In rails, how can I find out what caused a .save() to fail, other than validation errors?

How do I turn on SQL debug logging for ActiveRecord in RSpec tests?

Rails find record with zero has_many records associated [duplicate]

how to add records to has_many :through association in rails

Saving multiple objects in a single call in rails

How does Rails keep track of which migrations have run for a database?

Why all the Active Record hate? [closed]

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