Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

How to group and sum all currencies

Postgresql Rails: Select random record within a certain range?

How to make a query in Postgres to group records by month they were created? (:created_at datetime column)

Rails ActiveRecord find array of ids, but some are not found

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?