Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

What is the class of an association based on the foreign key attribute only?

Rails ActiveRecord return records where id exists in related table

ActiveRecord::Migration deprecation warning - asks for Rails version, but I'm not using Rails

How to find a model class from its table name?

Make root node in Active Model Serializer

Rails' ActiveRecord serialize :attr method gives "Missing Class or module error"

Deal with a drop_table migration for nonexistent table on heroku

How can I search date range in Rails with variable date

what's the proper way to handle timeouts for active record with a connection pool?

Naming conventions for Rails migrations

using scope on an association

Rails: Prevent parent model from being created and surfacing child model validation errors

Reload a model attribute

Rails 3: .group() ordered by created_at

activerecord - how to get all column of joined tables

What is the behaviour of create_join_table of ActiveRecord::Migration?

Creating Rails ActiveRecord model from params hash

ActiveRecord::DangerousAttributeError

PostgreSQL inheritance in ActiveRecord?

In rails, How to determine if a record was destroyed by a dependent: :destroy callback?