Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

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

Reporting on a grouped average over a group of records

rails associations :autosave doesn't seem to working as expected

Rails: Using will_paginate with a complex association find

Inserting time into a time column with Ruby on Rails

activerecord sum returns a string?

Rails 3 Serialization issue

How to display a form for a subset of associated records, some of which don't exist yet?

ActiveRecord Associations: Any gotchas if has_many WITHOUT corresponding belongs_to?

Select * sql query vs Select specific columns sql query [duplicate]

Change recorded variables created_at property

CollectionProxy vs AssociationRelation

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