Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in rails-activerecord

Rails console returns nil for column that contains a value

What is the difference with find_by() from the core and the one from the FinderMethods?

Want to be able to make multiple row inserts based off two different values

Bizarre error in pry when testing associations

Dynamic ActiveRecord finder methods chaining based on params

ActiveRecord Query Chains

Conditionally chaining where clauses in Rails ActiveRecord queries

Paranoid an increment! counter may not be working properly

Manipulating records returned in an active record scope

How to check if a column is present in a table?

ActiveRecord: How to include another model based on Enum?

How do I create a self-referential association table rails migration

Get average of attribute through 'has_many'

Performing a function to check for duplicates before saving the record in the model in Rails

How to use a group by clause on an ActiveRecord query using a Hstore key? [closed]

How do I check if an association exists in ActiveRecord from inside a model?

How can I get Rails 5 to play nicely with a primary key that has a period in it?