Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

What's a good way to clean up my migrations in Rails?

Multiple has_many relationships to same model

Rails 3 sorting through parent association

How can you conditionally build an ActiveRecord Query in Rails?

Rails Delegate Set Value

How to change a reference column to be polymorphic?

Accessing rails flash[:notice] in a model

Like and where condition in ruby

ActiveRecord: Do I need both belongs_to and has_one

Refactoring ActiveRecord models with a base class versus a base module

Concat in Codeigniter Active Record

codeigniter 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?