Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

How to query WHERE (ColA, ColB, ColC) IN ((a1, b1, c1), (a2, b2, c2), ...)

has_one association with optional: true?

How can I count unique values in a table in Rails?

Accept string input for attribute, store integer in DB, return string in API

Heroku (PG::Error: ERROR: column must appear in the GROUP BY clause or be used in an aggregate function

Codeigniter combine where_in and like active record queries

Retrieving rows from one table with polymorphic associations

Configuring fixture_path in ActiveRecord test fixtures

ruby activerecord

ActiveRecord count of distinct days from created_at?

Why does :dependent => :restrict throw an error?

how to check where mysql dababase exists from rails env?

How to disable tracking of changed attributes in model in active_record

Yii - CActiveDataProvider using relations

php activerecord yii

How to traverse multiple many to many associations in activerecord

has_many :through query with both values

Ruby on Rails - Active Record Query - Return items that only have an image