Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Rails 3: Arel for NOT EXISTS?

Rails 3 add virtual attribute dynamically

Is :on => :create valid for a before_save callback in Rails 3.2.3

ActiveRecord::AssociationTypeMismatch: User expected, got Fixnum

Differences between `any?` and `exists?` in Ruby on Rails?

find_by_sql with array format in Rails 3

How to get yesterday data from Rails ActiveRecord

Active Record - Where IN with multiple columns

Hacking ActiveRecord: add global named scope

Is there find_or_create_by_ that takes a hash in Rails?

handling order with has_many through relationship

Rails polymorphic association: Restrict allowed classes

remove field name from object validation message

How can I permanently ignore a database column in my ActiveRecord::Base class?

Check if at least one record have a given attribute set to true

Yii2 select by max date?

mysql activerecord yii2

Overriding ApplicationRecord initialize, bad idea?

How does the ActiveRecord pattern differ from the Domain Object or Data Mapper pattern?

How to convert records including 'include' associations to JSON

after_create and after_save order