Active Record is a pattern that combines domain logic with storage abstraction in single object.
I'm trying to write LIKE query. I read that pure string quires aren't safe, however I couldn't find any documentation …
ruby activerecord ruby-on-rails-4What is the best way to find records with duplicate values across multiple columns using Postgres, and Activerecord? I found …
ruby-on-rails postgresql activerecordNow that ActiveRecord::Relation#all is deprecated in Rails 4, how are you supposed to iterate all records? Used to be …
activerecord ruby-on-rails-4I'm trying to figure out when to use the bang! versions for saving and updating records? I've read and heard …
ruby-on-rails activerecord transactionsI have an ActiveRecord model that has a date attribute. Is it possible to utilize that date attribute to find …
ruby-on-rails ruby-on-rails-3 activerecord rails-activerecordI have an ActiveRecord model which is returning true from valid? (and .errors is empty), but is returning false from …
ruby-on-rails activerecordThe #new_record? function determines if a record has been saved. But it is always false in the after_save …
ruby-on-rails activerecord activemodelI am trying to create a custom rake task, but it seems I dont have access to my models. I …
ruby-on-rails activerecord rake taskIs it possible to completely remove the database and all migration records etc from an existing application so I can …
database ruby-on-rails-3 sqlite activerecord rails-migrationsIs there any way of overriding a model's id value on create? Something like: Post.create(:id => 10, :title => …
ruby-on-rails activerecord