Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

How to check whether an object is a result of has_one or has_many?

Rails: how to make class method scope to handle nil arguments

Rails -- get the names of all a table's columns of a certain data type? (#column_names for just float cols, for ex.)

Filtered Pagination with Kaminari

Rails SQL: How to join belongs_to association in query that is referenced twice with two foreign keys

Active Record query causing SQLException near "," syntax error

codeigniter v4 num_rows() Call to undefined method

Create array from ActiveRecords Association CollectionProxy

How to add Composite primary key in YII Framework

Custom association for Rails models

ActiveRecord Postgres database not locking - getting race conditions

Rails - Is there any way to set an overrideable "default" filter (i.e. pre-run class method) for a model's ActiveRecord::Relation queries?

Rails "try" a constant

Rails, active storage, Error message when I try to attach a photo

Filtering with Joins - Rails

Find all records that don't have any of an associated model

Rails: Using different model fields in ActiveRecord Concern