Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

find_or_initialize_by on has_many association causes duplicate error

HTTP requests in transactions?

Marshal or Serialize an ActiveRecord object

Using scope to return results within multiple DateTime ranges in ActiveRecord

destroy vs destroy_all

Active Record: Eager load association with parameter

Can't delete_all associated records with "has_many through"

Rails, fixtures and default_scope

Connect to existing Postgresql database with ActiveRecord without rails

Dynamically create a class inherited from ActiveRecord?

ruby activerecord

Rails Auto-populate form field based off of date input

ActiveRecord has_and_belongs_to_many: find models with all given elements

How to use "DISTINCT ON" in conjunction with Arel / ActiveRecord?

Yii2 activerecord custom attribute

php activerecord yii2

How to convert RIGHT LEFT functions to codeigniter active record

Should PG::Result#clear be called after you've executed raw SQL?

Rails 3: How do I validate to allow blanks ("") but not nil (NULL in database)

Rails belongs_to association (with :class_name) returns nil

Rails model that has both 'has_one' and 'has_many' but with some constraints

ActiveRecord::ConnectionTimeoutError happening sporadically