Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

How to update a column without loading the object in ActiveRecord

How to test if carrierwave file changed?

activemodel - updating children of object when saving parent

to_json on single value can't be parse back

Rails - handling multiple different time zones on the same request

Active Record - Find and Update (only if object exists)

How to share activerecord models via Ruby Gem

How to eager load roots using ancestry gem with rails?

Rspec tests failing randomly when analysing ActiveRecord objects generated by Mongoid events

How to write a raw sql in rails scope?

Rails & ActiveRecord: DRY use same logic in scope and boolean method

Order by time of day and regardless of date

Update a relation in a scope?

Rails 4.2: Eager-loading has_many relation with STI

ActiveRecord uniqueness validation prevents update

How can I allow Devise users to log in when they're outside my default scope?

Equivalent for SQL WITH RECURSIVE in Arel

sql ruby activerecord arel

Compare data in array and count the number of instances it occurs in the database using codeigniter

CollectionProxy vs AssociationRelation

How to get the line of code that triggers a query?