Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Generating sequential numbers in multi-user saas application

Rails - Adding Custom Fields at runtime in ActiveRecord

Rails: Why can't you set an association to nil in a where clause?

How can I make Rails ActiveRecord automatically truncate values set to attributes with maximum length?

How can I do something like find_in_batches_by_sql in Rails

ActiveRecord associations are auto-saved on assignment after migrating between Rails versions, how can I disable that?

Rails update only empty fields

Create form fields for hash attribute

Get records with empty hstore

Dynamic class_name for has_many relations

How would you do this Rails sub-query using Squeel?

Polymorphic Association with multiple associations on the same model

How to capture errors from ActiveRecord::Base.connection.execute in Rails?

Multiple scope uniqueness validation

Is it possible to not repeat Rails ActiveRecord where condition arguments?

How do I force a Rails query to return potentially two models per result?

Rails 3 Order By Count on has_many :through

Selecting records where relation is not empty

How are values cast when assigning to a Boolean field in Rails ActiveRecord?

How to join on the same table multiple times?