Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in rails-activerecord

Route concern and polymorphic model: how to share controller and views?

What is the difference between `before_create` and `after_create` and when to use which?

Are the .order method parameters in ActiveRecord sanitized by default?

Best way to store Enum value in ActiveRecord and convert to string for display

Deal with a drop_table migration for nonexistent table on heroku

How to build scope to order title

Rails Merge child errors with Parent errors

Why would I NOT want to use inverse_of everywhere?

Convert PG::Result to an Active Record model

has_one through association with condition

on an ActiveModel Object, how do I check uniqueness?

What is the return value of update_all() in ActiveRecord / Ruby on Rails?

How to get the array for an Enum model attribute?

how to select fields from joined table properly?

Rails 3: Apply the same validation rules to multiple table fields

Is there a DRY way to pass bind variables to an AR Relation?

Rails 4 Relation#all deprecation

rails - apply default value for enum field

ActiveRecord log which query went to which database

Use Rails' select() to add (not overwrite) selected attributes?