Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

How can I search date range in Rails with variable date

what's the proper way to handle timeouts for active record with a connection pool?

Naming conventions for Rails migrations

using scope on an association

Rails: Prevent parent model from being created and surfacing child model validation errors

Reload a model attribute

Rails 3: .group() ordered by created_at

activerecord - how to get all column of joined tables

What is the behaviour of create_join_table of ActiveRecord::Migration?

Creating Rails ActiveRecord model from params hash

ActiveRecord::DangerousAttributeError

PostgreSQL inheritance in ActiveRecord?

In rails, How to determine if a record was destroyed by a dependent: :destroy callback?

How to skip transaction in ActiveRecord for INSERT ONLY statement?

Rails 3 ActiveRecord conditional includes?

Very slow: ActiveRecord::QueryCache#call

How to fix DEPRECATION WARNING: Class level methods will no longer inherit scoping from in Rails 6.1?

Differences between Active Record and Table Data Gateway

How to query UUID for postgres

has_one through association with condition