Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

How do I make an ActiveRecord scope that doesn't affect the query in Rails 3 using Arel (presumably)?

How to mock and stub active record before_create callback with factory_girl

Is there a clean API for resetting instance variables on 'reload' in ActiveRecord?

Active Record :includes with limit

Disabling Rails SQL query caching globally

combine results from two queries and order by created_at? [rails 3]

Custom order based on Enum values

What does Vo stands for? [closed]

oop activerecord orm

Constructing a Rails ActiveRecord where clause

How can I make named_scope in Rails return one value instead of an array?

How to use `to_sql` in AREL when using `average()`?

Possible to skip validations on update_attributes?

undefined method `default_scoped?' while accessing scope

Increasing counter in database

Difference between ActiveRecord's finder methods: take vs limit(1)

Ruby on Rails: loading seed data from a YAML file

Rails forms - When no checkboxes are checked, param is not included in POST

Can I add comments to a table or column using ActiveRecord Migrations?

How to use update all, when all records are different?

Rails: Delete associated records on object destroy