Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Using variable in ActiveRecord where condition

Rails: Allow only one record of a rails model to have a boolean property true?

ActiveRecord Validations for Models with has_many, belongs_to associations and STI

Associating Two Models in Rails (user and profile)

Pluck unique values from an ActiveRecord has_many association

Batch Looping A Model With Ruby

Rails - Strange time_select buggy behavior

ActiveRecord transaction is not rolling back whole transaction

Make db column optional or not required so I can create record

ActiveRecord column does not exist

NoMethodError: undefined method `needs_migration?' for ActiveRecord::Migrator:Class

Active Record in_batches vs find_in_batches

Case Statements in ARel

How to get the last nth record for each group in a rails query

rails has_many setter should set conditions if specified

Ruby Rails _without_ ActiveRecord

ActiveRecord subquery in select clause

Rails Active Record query: answered questions, ordered by answer date, not duplicates

Return element of jsonb field with activerecord select

How to join tables to get only the last record of has-many association?