Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

How to join on the same table multiple times?

HMT collection_singular_ids= deletion of join models is direct, no destroy callbacks are triggered

Is possible to recursively save a record in Rails?

Rails 3 has_many :through + join table conditions / scoping

object.count returns 0. But object.any? returns true. What's happening?

Rails: How do I filter a ActiveRecord collection result without making new db queries?

Destroy associations after the last has_many :through record is deleted

yii CActiveDataProvider with limit and pagination

mysql activerecord yii

Group By Year, Month & then Count in ActiveRecord 3

how can i map two column in single rails query

Rails creating schema_migrations - Mysql2::Error: Specified key was too long

Generate migrations outside Rails

activerecord migration

What is the fastest way to find the first record in Rails (ActiveRecord)?

Rails does not fire my after_commit callback

How to join on subqueries using ARel?

Loop through ActiveRecord::Associations::CollectionProxy with each

ruby activerecord

Possible to avoid ActiveRecord::ConnectionTimeoutError on Heroku?

A callback for ActiveRecord database connections?

Rendering a JSON object of a join-model and its associated models

Rails - build_association is not working for a has_one and belongs_to relationship