Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

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

Swapping values between records that have unique validation

Postgres connection leaks - idle in transaction (aborted)

Belongs To User association