Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

How should I merge hash while using 'first_or_create'

Debug Rails Active Record Query

I Don't Understand How to Express a Relationship Between Three Separate Tables

Select Rails objects that include value in array attribute

Order query by day / month / year in rails

Fetch the first record with a foreign key

Group ActiveRecord::Relation By Field Into Hash With Dictionary

What is the best way of preventing the last record in a has_many collection being removed?

model names that causing errors in ruby on rails

Get Current Name Of Callback ActiveRecord Rails

Rails ActiveRecord - is there a way to perform operations on tables without an id?

How do I "reuse" a single bind variable in Arel?

Accessing the associated join model when iterating through a has_many :through association

Rails 4 Active Record array query

Uniqueness case-sensitive false causes slow query

Passing association parameters on ActiveRecord object creation

Restrict eagerly loaded with `where` without another query in Rails

postgreSql and Rails order