Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Trying to do something with ActiveRecord::Base.connection_pool.with_connection

ActiveRecord raising duplicate key error on simple create

What is the best way to set some attributes of Profile model is public(visible) or private(invisible) to other user?

ActiveRecord enum returning nil, even if it has a value

Rails 2.3 session

Rails Migrations: Load default data

Avoiding "Single Table Inheritance" in Rails/ActiveRecord and Legacy Schema

Any Rails plugin to add comments about each column in ActiveRecord migration files?

Rails 3 - How to get the row number from a model with an order by

How to efficiently search for last record matching a condition in Rails and PostgreSQL?

Rails 3 - where clause on has_many through association

Rails has_many :through sum attribute on "child objects" --> SQL Toughy

Batch insert in Yii

activerecord yii insert yii1.x

Show data in table from Rails Console for PostgreSQL

ActiveRecord how to add existing record to association in has_many :through relationship in rails?

Rails 4 how to find the maximum length of a string column

Specify fields to exclude from Rails query result

Rails where with multiple conditions

Validate max amount af associated objects

Find all posts with more than a defined number of comments