Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Use Ruby's select method on a Rails relation and update it

Multiple query conditions in Rails - if they exist.

How to (massively) reduce the number of SQL queries in Rails app?

Whats the best way to get the nth to last record?

rails serialized array validation

In Yii2, how do I join a table to itself?

activerecord yii2 self-join

Rails 4: ActiveRecord-style I18n on a non-ActiveRecord object?

Rails: What's the difference between ActiveRecord::Base.transaction and MyClass.transaction?

Problems with infinite time range in Rails

Multiple Associations to Same Model

How can I transparently modify an ActiveRecord method in a model?

Application Trust Level on Network Drive for Nhibernate C# Application

Seeing if a column value is updated

Rails doesn't recreate mysql views in the test database, even when config.active_record.schema_format = :sql

validates_presence_of with belongs_to associations, the right way

Dynamic Methods on a Rails Model

Truncate table on migration down method of ActiveRecord Rails 3.1

How do I make ActiveRecord::Schema.define not log to stdout?

find_in_batches works only with integer-based primary keys?

Rails: how do you access belongs_to fields in a view?