Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in rails-activerecord

Building a Rails scope using `tap`

Ruby on Rails - how would I change the order of posts displayed to newest at the top of page?

belongs_to touch: true not fired on association.build and nested attribute assignment

How to define the sequence to use when creating a table in ActiveRecord migration in Ruby on Rails 5.2?

How does the upsert function in Rails work?

undefined method `group_by_day' - rails 3.2

Constructing an ActiveRecord with Nested Joins - Rails 4

Prevent the updated_at field in User to get modified while signing in using devise

Why won't update action work for nested form fields in rails?

How to group/select JSON type column (PG::UndefinedFunction: ERROR: could not identify an equality operator for type json)

How should I test Rails Enums?

ActiveRecord: Exclude group if at least one record within it doesn't meet condition

Do shoulda-matchers' ActiveRecord matchers violate the "test behavior not implementation" rule?

Rails InvalidForeignKey

DateTime arithmetic in an ActiveRecord query (PostgreSQL)

Problems while making a generic model in Ruby on Rails 3

Rails 4 model returns always nil

Using Enum and want to access the stored integer value in the view

Optional where in Rails

How to define a custom name for delegate method in Rails 5?