Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

When to add what indexes in a table in Rails

Using Rails serialize to save hash to database

When to use a "has_many :through" relation in Rails?

Ruby on Rails. How do I use the Active Record .build method in a :belongs to relationship?

How to show SQL queries run in the Rails console?

Specifying column name in a "references" migration

Count, size, length...too many choices in Ruby?

How to select where ID in Array Rails ActiveRecord without exception

Override ActiveRecord attribute methods

How to chain scope queries with OR instead of AND?

Can you get DB username, pw, database name in Rails?

How do you discover model attributes in Rails?

What does inverse_of do? What SQL does it generate?

belongs_to through associations

Rails 3 migrations: Adding reference column?

Rails: validate uniqueness of two columns (together)

How do you manually execute SQL commands in Ruby On Rails using NuoDB

What's the difference between belongs_to and has_one?

How to get last N records with activerecord?

Rails: How do I create a default value for attributes in Rails activerecord's model? [duplicate]