Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Get deleted object with paranoid through related activerecord objects

Export Active Records including relationships and attachments in Rails

Why does query with AND and OR operators yield unexpected results?

Rails database complain non exist on production only (with db:migrate succeeded)

Include, Select, Sort, Limit from multiple models (single query)

Connection fails, database has '.' in name

Accessing validation context in a callback

How do you concatenate two active record results to return a new result that can further be filtered?

Order array list from model function

Rails merge 2 query results

Is there a way to invalidate / dirty Yii2 query cached record?

ActiveRecord named_scope, .scopes

How to get only last records grouped by some value in Rails

What is a proper naming convention for related tables and models in rails 3

Update DB with ajax request in rails