Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

How to I make my custom mySQL query to in rails 3?

Can I write this query more elegantly with AREL/ActiveRecord?

ruby activerecord arel

Rails ActiveRecord: legacy table without primary key shows nil for result?

Is there a way to remove the id column in a subsequent Rails 3 ActiveRecord migration?

Explanation of proxy_association to find unassociated records

How to always include a model for eager loading

Active Record query to match every subset element

Namespaced models causing UndefinedTable error

Same enum not working in different columns in rails

How to search array through ransack gem?

Compare two records and get the names of the changed columns in rails active record

Activerecord migrations, making t.references correctly point to a custom ID type, string not integer?

Finding the next ActiveRecord model object in the database using given object

What is the difference between these two statements, and why would you choose them?

Group Query with Calculations on Rails 3

How to validate models with a composite keys in ActiveRecord?

ActiveRecord: treating has_many list as a simple array

DateTime arithmetic in an ActiveRecord query (PostgreSQL)

Problems while making a generic model in Ruby on Rails 3

rails find_or_initialize on relationships