Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

ActiveRecord: List columns in table from console

Can you do greater than comparison on a date in a Rails 3 search?

How to list of all the tables defined for the database when using active record?

activerecord

Rails 3: Get Random Record

Rails 4 LIKE query - ActiveRecord adds quotes

How to convert ActiveRecord results into an array of hashes

arrays activerecord hash

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