Active Record is a pattern that combines domain logic with storage abstraction in single object.
I was wondering if anyone knew how to do an "IN" clause in activerecord. Unfortunately, the "IN" clause is pretty …
ruby activerecordI'm a PHP developer learning the awesomness of Ruby on Rails, I'm loving ActiveRecord and i noticed something really interesting, …
ruby-on-rails activerecordIn rails 3, using activerecord, is there a single-query way to set the :hidden field to TRUE for all records that …
ruby-on-rails activerecordI have 2 models. Report and Server that have a belongs_to and has_many relationship. I created an accessor method …
ruby-on-rails ruby activerecord associationsI would like to know if it is possible to get the types (as known by AR - eg in …
ruby-on-rails ruby activerecord activemodelUsing Rails 3.2, what's wrong with this code? @reviews = @user.reviews.includes(:user, :reviewable) .where('reviewable_type = ? AND reviewable.shop_type = ?…
ruby-on-rails ruby-on-rails-3 activerecordI have a model that uses a serialized column: class Form < ActiveRecord::Base serialize :options, Hash end Is there …
ruby-on-rails json activerecord yaml serializationI have a table in a Rails app with hundreds of thousands of records, and they only have a created_…
ruby-on-rails activerecord migration timestampHere's part of an integration test that I'm having: user = User.first assert !user.is_active? get confirm_email_user_…
ruby-on-rails ruby testing activerecordThe uniqueness validator of ActiveRecord has an options to skip validation if the value is nil or blank. Even if …
ruby-on-rails activerecord validates-uniqueness-of