Active Record is a pattern that combines domain logic with storage abstraction in single object.
I have the following php-codeigniter script which attempts to increment a field of a record using active-record syntax: $data = array(…
mysql sql codeigniter activerecordApparently dependent => destroy is ignored when also using the :through option. So I have this... class Comment < ActiveRecord::…
ruby-on-rails activerecord has-many-throughThis seems fairly simple but I can't get it to turn up on Google. If I have: class City < …
sql ruby-on-rails activerecord has-manyCould you tell me whats the best practice to create has_one relations? f.e. if i have a user …
ruby-on-rails ruby activerecord ruby-on-rails-3 associationsIn my Rails app I've run into an issue a couple times that I'd like to know how other people …
ruby-on-rails ruby-on-rails-3 sorting activerecord nullI found that my Model.create! statements were taking a very long time to run when I added a large …
ruby-on-rails activerecord bulkinsertI am trying to create an ActiveRecord Object.But I'm getting this error while creating it. (0.1ms) ROLLBACK ActiveRecord::StatementInvalid: …
ruby-on-rails postgresql activerecord rollback pgI've reinstalled Postgres (9.2.4) and I'm having trouble getting it set back up with Rails 3.2.11. I did: brew install postgresql initdb /…
ruby-on-rails ruby-on-rails-3 postgresql activerecord database-migrationSo there is record.new_record? To check if something is new I need to check if something is on …
ruby-on-rails ruby activerecordI have no idea what went wrong but I can't get belongs_to work with :class_name option. Could somebody …
ruby-on-rails activerecord associations