Active Record is a pattern that combines domain logic with storage abstraction in single object.
I'm trying to get my head around inverse_of and I do not get it. What does the generated sql …
ruby-on-rails activerecordHow do you do an or query in Rails 5 ActiveRecord? Also, is it possible to chain or with where in …
ruby-on-rails ruby activerecord ruby-on-rails-5 rails-activerecordIn my current rails program when I use something like user = User.find(10) When there is no user with ID=10 , …
ruby-on-rails ruby ruby-on-rails-3 activerecordI need to calculate values when saving a model in Rails. So I call calculate_averages as a callback for …
ruby-on-rails ruby-on-rails-3 activerecord ruby-on-rails-3.2 rails-activerecordHere is a nested select with include: @items = Item.where("complete = ?", true).includes( :manufacturer, {:order=>[:supplier, :agent] }) This is …
ruby-on-rails ruby-on-rails-3 activerecord select includeI have an ActiveRecord model, Foo, which has a name field. I'd like users to be able to search by …
ruby-on-rails ruby activerecord unicode utf-8I have a table which has a field `activated_at` timestamp NULL DEFAULT NULL, which means that it can contain …
php activerecord yii yii2I have created a new table including a column "note". The default is varchar(255) I believe but I wish to …
ruby-on-rails activerecord migration rails-migrationsI am putting together a few models for my codeigniter site and can't seem to find any word in the …
php codeigniter activerecordI want to implement a SQL statement using codeigniter active record. UPDATE tags SET usage = usage+1 WHERE tag="java"; How …
database activerecord codeigniter insert-update