Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in rails-activerecord

Why would I NOT want to use inverse_of everywhere?

Convert PG::Result to an Active Record model

has_one through association with condition

on an ActiveModel Object, how do I check uniqueness?

What is the return value of update_all() in ActiveRecord / Ruby on Rails?

How to get the array for an Enum model attribute?

how to select fields from joined table properly?

Rails 3: Apply the same validation rules to multiple table fields

Is there a DRY way to pass bind variables to an AR Relation?

Rails 4 Relation#all deprecation

rails - apply default value for enum field

ActiveRecord log which query went to which database

Use Rails' select() to add (not overwrite) selected attributes?

Override just the default scope (specifically order) and nothing else in Rails

rails 3.0.12 how to check what version of activerecord do i have?

rails 3/postgres - how long is a string if you don't apply :limit in schema

ActiveRecord : Hide column while returning object

Dynamically generate scopes in rails models

ActiveRecord::ConnectionNotEstablished - No connection pool for X

Rails: ActiveRecord where vs merge