Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Conditional validation based on column which may be nil

Rails ActiveRecord::RecordInvalid exception not raised in after_create of association

Create a child model in rails (belongs_to) and pre-setting the parent ID

Is it possible to DRY this migration up?

Ruby on Rails - Query Multiple Models

.hash in ActiveRecord

Writing worker using sidekiq for activerecord class

How to write a BETWEEN condition with Codeigniter's query builder methods?

ActiveRecord::Base.send(:descendants) doesn't return all models unless touched

rake db:schema:dump doesn't provide data migration info - is there an automated way to get this?

How do I write an activerecord query that only looks at the time component of a datetime field?

how to make a ActiveModel to became a hash or array?

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings

Tutorial for Creating Views for ActiveRecord Associations?

Join Table issue with rails 6

Rails save serialized object fails?

yii2 : can't get data from two table with active record

activerecord yii2