Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

TypeError (nil can't be coerced into Float):

Returning distinct or grouped records from a postgres DB using active record queries

Decrease column value via update query with join clause using CI's active record [duplicate]

Multiple Join Optimization in ActiveRecords Rails

after_update is called when the object is only created

How to append to a string on an ActiveRecord column in Rails

Why before_save/after_save is not triggered when attribute updates to nil? And how to trigger it?

Next element in array of active record objects

Rails how to copy all active storage attachments to new object?

Double join with habtm in ActiveRecord

ActiveRecord Update_all to variable value

Preload associations of already loaded relation

Allow users to create dynamic model attributes?

WARNING: Can't mass-assign these protected attributes: id (ar-extensions)

Iterating through an activerecord::relation array

Rails: NameError (uninitialized constant ActiveRecord::RecordNotUnique)

Rails3: SQL execution with hash substitution like .where()